﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SQLite;
using System.IO;
using System.Text.RegularExpressions;

namespace WeatherGod
{
    public class Sqlite
    {
        static string dataBaseFile = "Databases/Weibo.sqlite";

        #region sqlite
        public static bool CheckDbFile(string dbName)
        {
            if (File.Exists(dbName))
            {
                return true;
            }
            else
            {
                return false;
            }
        }
        public void sqlite_test()
        {
            SQLiteConnection conn = new SQLiteConnection();
            SQLiteConnectionStringBuilder conStr = new SQLiteConnectionStringBuilder();
            conStr.DataSource = dataBaseFile;
            conn.ConnectionString = conStr.ToString();

            //open connetcion
            conn.Open();
            SQLiteCommand cmd = new SQLiteCommand();
            string sql = string.Empty;
            cmd.Connection = conn;

            /*
            //create a table
            sql = "CREATE TABLE \"test3\" (\"day2\" INTEGER NOT NULL);";
            cmd.CommandText = sql;
            cmd.ExecuteScalar();
            */

            /*
            //insert data
            for (int i = 0; i <= 10; i++)
            {
                sql = "INSERT INTO test VALUES('cola','mypassword')";
                cmd.CommandText = sql;
                cmd.ExecuteNonQuery();
            }
             */

            //select table
            sql = "SELECT * FROM test";
            cmd.CommandText = sql;
            using (SQLiteDataReader reader = cmd.ExecuteReader())
            {
                while (reader.Read())
                {
                    Console.WriteLine(reader["day"].ToString() + "---" + reader["text"].ToString());
                }
            }

            conn.Close();
            //Console.Read();
        }
        public static Dictionary<string, string> SearchCurrentWeibo()
        {
            Dictionary<string, string> twitter_tbs = new Dictionary<string, string>();

            DateTime currentTime = DateTime.Now;
            string curYear = currentTime.Year.ToString();
            string curMonth = currentTime.Month.ToString();
            string curDay = currentTime.Day.ToString();
            string curHour = currentTime.Hour.ToString();
            string curMinute = currentTime.Minute.ToString();
            string curSecond = currentTime.Second.ToString();

            SQLiteConnection conn = new SQLiteConnection();
            SQLiteConnectionStringBuilder conStr = new SQLiteConnectionStringBuilder();
            conStr.DataSource = dataBaseFile;
            conn.ConnectionString = conStr.ToString();

            //open connetcion
            conn.Open();
            SQLiteCommand cmd = new SQLiteCommand();
            string sql = string.Empty;
            cmd.Connection = conn;

            //select table
            //SELECT * FROM test001 WHERE Day = 2 AND Hour = 9 AND Minute = 8;
            //SELECT * FROM "test001" WHERE "Day" = 2 AND "Hour" = 9 AND "Minute" = 8;
            string tableName = "Month" + currentTime.ToString("MM");
            sql = "SELECT * FROM \"" + tableName + "\" WHERE \"Day\" = " + curDay + " AND \"Hour\" = " + curHour + " AND \"Minute\" = " + curMinute;
            cmd.CommandText = sql;
            using (SQLiteDataReader reader = cmd.ExecuteReader())
            {
                while (reader.Read())
                {
                    if (!String.IsNullOrEmpty(reader["Text"].ToString()))
                    {
                        twitter_tbs.Add("Forward", reader["Forward"].ToString());
                        twitter_tbs.Add("Text", reader["Text"].ToString());
                        twitter_tbs.Add("Picture", reader["Picture"].ToString());
                        break;
                    }
                }
            }

            conn.Close();
            return twitter_tbs;
        }
        public static int SearchPM25ByPlaceID(string TQID)
        {
            int pm25 = -1;
            try
            {
                string sql = "SELECT \"PM25\" FROM \"Weather\" WHERE \"TQID\" = " + TQID + ";";
                SQLiteConnection conn = new SQLiteConnection("Data Source=" + dataBaseFile);
                conn.Open();

                SQLiteCommand cmd = conn.CreateCommand();
                cmd.CommandText = sql;

                //cmd.CommandText = "SELECT ID, name FROM user";
                SQLiteDataReader reader = cmd.ExecuteReader();
                while (reader.Read())
                {
                    if (!String.IsNullOrEmpty(reader["PM25"].ToString()))
                    {
                        pm25 = Convert.ToInt32(reader["PM25"]);
                        break;
                    }
                }
                conn.Close();
            }
            catch (Exception)
            {
                throw;
            }
            return pm25;
        }
        public static string SearchWeatherIDByPlaceID(string provinceId, string cityId)
        {
            string tqid = "";
            try
            {
                string sql = "SELECT \"TQID\" FROM \"Weather\" WHERE \"PID\" = " + provinceId + " AND \"CID\" = " + cityId + ";";
                SQLiteConnection conn = new SQLiteConnection("Data Source=" + dataBaseFile);
                conn.Open();

                SQLiteCommand cmd = conn.CreateCommand();
                cmd.CommandText = sql;

                //cmd.CommandText = "SELECT ID, name FROM user";
                SQLiteDataReader reader = cmd.ExecuteReader();
                while (reader.Read())
                {
                    if (!String.IsNullOrEmpty(reader["TQID"].ToString()))
                    {
                        tqid = Convert.ToString(reader["TQID"]);
                        break;
                    }
                }
                conn.Close();
            }
            catch (Exception)
            {
                throw;
            }
            return tqid;
        }
        public static int SearchPM25ByCityName(string cityName)
        {
            int pm25 = -1;
            try
            {
                string sql = "SELECT \"PM25\" FROM \"Weather\" WHERE \"Keyword\" = \"" + cityName + "\";";
                SQLiteConnection conn = new SQLiteConnection("Data Source=" + dataBaseFile);
                conn.Open();

                SQLiteCommand cmd = conn.CreateCommand();
                cmd.CommandText = sql;

                //cmd.CommandText = "SELECT ID, name FROM user";
                SQLiteDataReader reader = cmd.ExecuteReader();
                while (reader.Read())
                {
                    if (!String.IsNullOrEmpty(reader["PM25"].ToString()))
                    {
                        pm25 = Convert.ToInt32(reader["PM25"]);
                        return pm25;
                    }
                }
                conn.Close();
            }
            catch (Exception ex)
            {
                string exc = ex.Message;
            }
            return pm25;
        }
        public static Dictionary<int, string> SearchIndexAndCity()
        {
            Dictionary<int, string> pm25_tbu = new Dictionary<int, string>();
            SQLiteConnection conn = new SQLiteConnection();
            SQLiteConnectionStringBuilder conStr = new SQLiteConnectionStringBuilder();
            conStr.DataSource = dataBaseFile;
            conn.ConnectionString = conStr.ToString();

            //open connetcion
            conn.Open();
            SQLiteCommand cmd = new SQLiteCommand();
            string sql = string.Empty;
            cmd.Connection = conn;

            //select table
            //SELECT * FROM test001 WHERE Day = 2 AND Hour = 9 AND Minute = 8;
            //SELECT * FROM "test001" WHERE "Day" = 2 AND "Hour" = 9 AND "Minute" = 8;
            string tableName = "Weather";
            //sql = "SELECT Index, FROM \"" + tableName + "\" WHERE \"Day\" = " + curDay + " AND \"Hour\" = " + curHour + " AND \"Minute\" = " + curMinute;
            sql = "SELECT \"Index\",\"KeyWord\" FROM \"Weather\";\\";
            cmd.CommandText = sql;
            using (SQLiteDataReader reader = cmd.ExecuteReader())
            {
                while (reader.Read())
                {
                    //if (!String.IsNullOrEmpty(reader["KeyWord"].ToString()) 
                    //    && (Convert.ToInt32(reader["Index"]) < 100)
                    //    && !reader["KeyWord"].ToString().Contains("不限"))
                    //{
                    pm25_tbu.Add(Convert.ToInt32(reader["Index"]), reader["KeyWord"].ToString());
                    //}
                }
            }

            conn.Close();
            return pm25_tbu;
        }
        public static bool UpdatePM25toDB(string sql)
        {
            try
            {
                SQLiteConnection conn = new SQLiteConnection("Data Source=" + dataBaseFile);
                conn.Open();

                SQLiteCommand cmd = conn.CreateCommand();  
                cmd.CommandText = sql;
                cmd.ExecuteNonQuery(); 
                conn.Close();
            }
            catch (Exception ex)
            {
                throw new Exception("DB exception:" + ex.Message);
            }
            return true;

        }
        #endregion

        public static string getWeatherIdByWeiboText(string text)
        {
            #region citylist
            Dictionary<string, string> WeatherCityList = new Dictionary<string, string>();
            WeatherCityList.Add("澳门", "101330101");
            WeatherCityList.Add("北京", "101010100");
            WeatherCityList.Add("上海", "101020100");
            WeatherCityList.Add("天津", "101030100");
            WeatherCityList.Add("重庆", "101040100");
            WeatherCityList.Add("香港", "101320101");
            WeatherCityList.Add("大兴安岭", "101050701");
            WeatherCityList.Add("黑河", "101050601");
            WeatherCityList.Add("齐齐哈尔", "101050201");
            WeatherCityList.Add("大庆", "101050901");
            WeatherCityList.Add("绥化", "101050501");
            WeatherCityList.Add("伊春", "101050801");
            WeatherCityList.Add("哈尔滨", "101050101");
            WeatherCityList.Add("鹤岗", "101051201");
            WeatherCityList.Add("佳木斯", "101050401");
            WeatherCityList.Add("双鸭山", "101051301");
            WeatherCityList.Add("七台河", "101051002");
            WeatherCityList.Add("牡丹江", "101050301");
            WeatherCityList.Add("鸡西", "101051101");
            WeatherCityList.Add("白城", "101060601");
            WeatherCityList.Add("松原", "101060801");
            WeatherCityList.Add("长春", "101060101");
            WeatherCityList.Add("四平", "101060401");
            WeatherCityList.Add("吉林", "101060201");
            WeatherCityList.Add("辽源", "101060701");
            WeatherCityList.Add("通化", "101060501");
            WeatherCityList.Add("延吉", "101060312");
            WeatherCityList.Add("白山", "101060901");
            WeatherCityList.Add("朝阳", "101071201");
            WeatherCityList.Add("葫芦岛", "101071401");
            WeatherCityList.Add("锦州", "101070701");
            WeatherCityList.Add("阜新", "101070901");
            WeatherCityList.Add("盘锦", "101071301");
            WeatherCityList.Add("营口", "101070801");
            WeatherCityList.Add("大连", "101070201");
            WeatherCityList.Add("沈阳", "101070101");
            WeatherCityList.Add("辽阳", "101071001");
            WeatherCityList.Add("鞍山", "101070301");
            WeatherCityList.Add("铁岭", "101071101");
            WeatherCityList.Add("抚顺", "101070401");
            WeatherCityList.Add("本溪", "101070501");
            WeatherCityList.Add("丹东", "101070601");
            WeatherCityList.Add("昌江", "101310206");
            WeatherCityList.Add("东方", "101310202");
            WeatherCityList.Add("乐东", "101310221");
            WeatherCityList.Add("三亚", "101310201");
            WeatherCityList.Add("儋州", "101310205");
            WeatherCityList.Add("白沙", "101310207");
            WeatherCityList.Add("五指山", "101310222");
            WeatherCityList.Add("保亭", "101310214");
            WeatherCityList.Add("临高", "101310203");
            WeatherCityList.Add("琼中", "101310208");
            WeatherCityList.Add("陵水", "101310216");
            WeatherCityList.Add("澄迈", "101310204");
            WeatherCityList.Add("屯昌", "101310210");
            WeatherCityList.Add("海口", "101310101");
            WeatherCityList.Add("定安", "101310209");
            WeatherCityList.Add("琼海", "101310211");
            WeatherCityList.Add("万宁", "101310215");
            WeatherCityList.Add("文昌", "101310212");
            WeatherCityList.Add("阿拉善", "101081201");
            WeatherCityList.Add("临河", "101080801");
            WeatherCityList.Add("鄂尔多斯", "101080701");
            WeatherCityList.Add("包头", "101080201");
            WeatherCityList.Add("呼和浩特", "101080101");
            WeatherCityList.Add("乌兰察布", "101080401");
            WeatherCityList.Add("锡林郭勒", "101080901");
            WeatherCityList.Add("赤峰", "101080601");
            WeatherCityList.Add("通辽", "101080501");
            WeatherCityList.Add("兴安", "101081101");
            WeatherCityList.Add("呼伦贝尔", "101081000");
            WeatherCityList.Add("乌海", "101080301");
            WeatherCityList.Add("阿勒泰", "101131401");
            WeatherCityList.Add("塔城", "101131101");
            WeatherCityList.Add("克拉玛依", "101130201");
            WeatherCityList.Add("博尔塔拉", "101131601");
            WeatherCityList.Add("伊犁", "101131001");
            WeatherCityList.Add("昌吉", "101130401");
            WeatherCityList.Add("乌鲁木齐", "101130101");
            WeatherCityList.Add("吐鲁番", "101130501");
            WeatherCityList.Add("哈密", "101131201");
            WeatherCityList.Add("克孜勒", "101130503");
            WeatherCityList.Add("阿克苏", "101130801");
            WeatherCityList.Add("喀什", "101130901");
            WeatherCityList.Add("巴音郭楞", "101130601");
            WeatherCityList.Add("和田", "101131301");
            WeatherCityList.Add("石河子", "101130301");
            WeatherCityList.Add("阿里", "101140701");
            WeatherCityList.Add("那曲", "101140601");
            WeatherCityList.Add("日喀则", "101140201");
            WeatherCityList.Add("拉萨", "101140101");
            WeatherCityList.Add("山南", "101140301");
            WeatherCityList.Add("林芝", "101140401");
            WeatherCityList.Add("昌都", "101140501");
            WeatherCityList.Add("海西", "101150701");
            WeatherCityList.Add("玉树", "101150601");
            WeatherCityList.Add("海北", "101150801");
            WeatherCityList.Add("西宁", "101150101");
            WeatherCityList.Add("海南", "101150401");
            WeatherCityList.Add("果洛", "101150501");
            WeatherCityList.Add("海东", "101150201");
            WeatherCityList.Add("黄南", "101150301");
            WeatherCityList.Add("格尔木", "101150901");
            WeatherCityList.Add("石嘴山", "101170201");
            WeatherCityList.Add("银川", "101170101");
            WeatherCityList.Add("中卫", "101170501");
            WeatherCityList.Add("吴忠", "101170301");
            WeatherCityList.Add("固原", "101170401");
            WeatherCityList.Add("酒泉", "101160801");
            WeatherCityList.Add("嘉峪关", "101161401");
            WeatherCityList.Add("张掖", "101160701");
            WeatherCityList.Add("金昌", "101160601");
            WeatherCityList.Add("武威", "101160501");
            WeatherCityList.Add("白银", "101161301");
            WeatherCityList.Add("兰州", "101160101");
            WeatherCityList.Add("临夏", "101161101");
            //WeatherCityList.Add("合作", "101161201");
            WeatherCityList.Add("定西", "101160201");
            WeatherCityList.Add("庆阳", "101160401");
            WeatherCityList.Add("平凉", "101160301");
            WeatherCityList.Add("天水", "101160901");
            WeatherCityList.Add("陇南", "101161001");
            WeatherCityList.Add("张家口", "101090301");
            WeatherCityList.Add("承德", "101090402");
            WeatherCityList.Add("秦皇岛", "101091101");
            WeatherCityList.Add("唐山", "101090501");
            WeatherCityList.Add("保定", "101090201");
            WeatherCityList.Add("廊坊", "101090601");
            WeatherCityList.Add("石家庄", "101090101");
            WeatherCityList.Add("沧州", "101090701");
            WeatherCityList.Add("衡水", "101090801");
            WeatherCityList.Add("邢台", "101090901");
            WeatherCityList.Add("邯郸", "101091001");
            WeatherCityList.Add("安阳", "101180201");
            WeatherCityList.Add("鹤壁", "101181201");
            WeatherCityList.Add("濮阳", "101181301");
            WeatherCityList.Add("济源", "101181801");
            WeatherCityList.Add("焦作", "101181101");
            WeatherCityList.Add("新乡", "101180301");
            WeatherCityList.Add("三门峡", "101181701");
            WeatherCityList.Add("洛阳", "101180901");
            WeatherCityList.Add("郑州", "101180101");
            WeatherCityList.Add("开封", "101180801");
            WeatherCityList.Add("商丘", "101181001");
            WeatherCityList.Add("许昌", "101180401");
            WeatherCityList.Add("平顶山", "101180501");
            WeatherCityList.Add("漯河", "101181501");
            WeatherCityList.Add("周口", "101181401");
            WeatherCityList.Add("南阳", "101180701");
            WeatherCityList.Add("驻马店", "101181601");
            WeatherCityList.Add("信阳", "101180601");
            WeatherCityList.Add("十堰", "101201101");
            WeatherCityList.Add("神农架", "101201201");
            WeatherCityList.Add("恩施", "101201001");
            WeatherCityList.Add("襄阳", "101200201");
            WeatherCityList.Add("宜昌", "101200901");
            WeatherCityList.Add("荆门", "101201401");
            WeatherCityList.Add("荆州", "101200801");
            WeatherCityList.Add("随州", "101201301");
            WeatherCityList.Add("天门", "101201501");
            WeatherCityList.Add("潜江", "101201701");
            WeatherCityList.Add("仙桃", "101201601");
            WeatherCityList.Add("孝感", "101200401");
            WeatherCityList.Add("武汉", "101200101");
            WeatherCityList.Add("咸宁", "101200701");
            WeatherCityList.Add("鄂州", "101200301");
            WeatherCityList.Add("黄石", "101200601");
            WeatherCityList.Add("黄冈", "101200501");
            WeatherCityList.Add("张家界", "101251101");
            WeatherCityList.Add("吉首", "101251501");
            WeatherCityList.Add("常德", "101250601");
            WeatherCityList.Add("岳阳", "101251001");
            WeatherCityList.Add("益阳", "101250700");
            WeatherCityList.Add("长沙", "101250101");
            WeatherCityList.Add("怀化", "101251201");
            WeatherCityList.Add("娄底", "101250801");
            WeatherCityList.Add("湘潭", "101250201");
            WeatherCityList.Add("株洲", "101250301");
            WeatherCityList.Add("邵阳", "101250901");
            WeatherCityList.Add("衡阳", "101250401");
            WeatherCityList.Add("永州", "101251401");
            WeatherCityList.Add("郴州", "101250501");
            WeatherCityList.Add("滨州", "101121101");
            WeatherCityList.Add("东营", "101121201");
            WeatherCityList.Add("德州", "101120401");
            WeatherCityList.Add("聊城", "101121701");
            WeatherCityList.Add("济南", "101120101");
            WeatherCityList.Add("淄博", "101120301");
            WeatherCityList.Add("烟台", "101120501");
            WeatherCityList.Add("威海", "101121301");
            WeatherCityList.Add("泰安", "101120801");
            WeatherCityList.Add("莱芜", "101121601");
            WeatherCityList.Add("潍坊", "101120601");
            WeatherCityList.Add("青岛", "101120201");
            WeatherCityList.Add("菏泽", "101121001");
            WeatherCityList.Add("济宁", "101120701");
            WeatherCityList.Add("枣庄", "101121401");
            WeatherCityList.Add("临沂", "101120901");
            WeatherCityList.Add("日照", "101121501");
            WeatherCityList.Add("徐州", "101190801");
            WeatherCityList.Add("连云港", "101191001");
            WeatherCityList.Add("宿迁", "101191301");
            WeatherCityList.Add("淮安", "101190901");
            WeatherCityList.Add("盐城", "101190701");
            WeatherCityList.Add("扬州", "101190601");
            WeatherCityList.Add("泰州", "101191201");
            WeatherCityList.Add("南京", "101190101");
            WeatherCityList.Add("镇江", "101190301");
            WeatherCityList.Add("南通", "101190501");
            WeatherCityList.Add("常州", "101191101");
            WeatherCityList.Add("无锡", "101190201");
            WeatherCityList.Add("苏州", "101190401");
            WeatherCityList.Add("淮北", "101221201");
            WeatherCityList.Add("宿州", "101220701");
            WeatherCityList.Add("亳州", "101220901");
            WeatherCityList.Add("阜阳", "101220801");
            WeatherCityList.Add("蚌埠", "101220201");
            WeatherCityList.Add("淮南", "101220401");
            WeatherCityList.Add("六安", "101221501");
            WeatherCityList.Add("滁州", "101221101");
            WeatherCityList.Add("合肥", "101220101");
            WeatherCityList.Add("安庆", "101220601");
            WeatherCityList.Add("巢湖", "101221601");
            WeatherCityList.Add("马鞍山", "101220501");
            WeatherCityList.Add("芜湖", "101220301");
            WeatherCityList.Add("铜陵", "101221301");
            WeatherCityList.Add("池州", "101221701");
            WeatherCityList.Add("宣城", "101221401");
            WeatherCityList.Add("黄山", "101221001");
            WeatherCityList.Add("大同", "101100201");
            WeatherCityList.Add("朔州", "101100901");
            WeatherCityList.Add("忻州", "101101001");
            WeatherCityList.Add("太原", "101100101");
            WeatherCityList.Add("阳泉", "101100301");
            WeatherCityList.Add("吕梁", "101101100");
            WeatherCityList.Add("晋中", "101100401");
            WeatherCityList.Add("临汾", "101100701");
            WeatherCityList.Add("长治", "101100501");
            WeatherCityList.Add("晋城", "101100601");
            WeatherCityList.Add("运城", "101100801");
            WeatherCityList.Add("榆林", "101110401");
            WeatherCityList.Add("延安", "101110300");
            WeatherCityList.Add("铜川", "101111001");
            WeatherCityList.Add("宝鸡", "101110901");
            WeatherCityList.Add("咸阳", "101110200");
            WeatherCityList.Add("渭南", "101110501");
            WeatherCityList.Add("西安", "101110101");
            WeatherCityList.Add("商洛", "101110601");
            WeatherCityList.Add("汉中", "101110801");
            WeatherCityList.Add("安康", "101110701");
            WeatherCityList.Add("甘孜", "101271801");
            WeatherCityList.Add("阿坝", "101271901");
            WeatherCityList.Add("雅安", "101271701");
            WeatherCityList.Add("凉山", "101271601");
            WeatherCityList.Add("攀枝花", "101270201");
            WeatherCityList.Add("绵阳", "101270401");
            WeatherCityList.Add("德阳", "101272001");
            WeatherCityList.Add("成都", "101270101");
            WeatherCityList.Add("眉山", "101271501");
            WeatherCityList.Add("乐山", "101271401");
            WeatherCityList.Add("广元", "101272101");
            WeatherCityList.Add("南充", "101270501");
            WeatherCityList.Add("遂宁", "101270701");
            WeatherCityList.Add("资阳", "101271301");
            WeatherCityList.Add("内江", "101271201");
            WeatherCityList.Add("自贡", "101270301");
            WeatherCityList.Add("宜宾", "101271101");
            WeatherCityList.Add("巴中", "101270901");
            WeatherCityList.Add("达州", "101270601");
            WeatherCityList.Add("广安", "101270801");
            WeatherCityList.Add("泸州", "101271001");
            WeatherCityList.Add("迪庆", "101291301");
            WeatherCityList.Add("怒江", "101291201");
            WeatherCityList.Add("德宏", "101291501");
            WeatherCityList.Add("保山", "101290501");
            WeatherCityList.Add("丽江", "101291401");
            WeatherCityList.Add("大理", "101290201");
            WeatherCityList.Add("临沧", "101291101");
            WeatherCityList.Add("楚雄", "101290801");
            WeatherCityList.Add("普洱", "101290901");
            WeatherCityList.Add("西双版纳", "101291601");
            WeatherCityList.Add("昆明", "101290101");
            WeatherCityList.Add("玉溪", "101290701");
            WeatherCityList.Add("红河", "101290301");
            WeatherCityList.Add("昭通", "101291001");
            WeatherCityList.Add("曲靖", "101290401");
            WeatherCityList.Add("文山", "101290601");
            WeatherCityList.Add("遵义", "101260201");
            WeatherCityList.Add("铜仁", "101260601");
            WeatherCityList.Add("毕节", "101260701");
            WeatherCityList.Add("贵阳", "101260101");
            WeatherCityList.Add("水城", "101260801");
            WeatherCityList.Add("安顺", "101260301");
            WeatherCityList.Add("凯里", "101260501");
            WeatherCityList.Add("都匀", "101260401");
            WeatherCityList.Add("兴义", "101260901");
            WeatherCityList.Add("湖州", "101210201");
            WeatherCityList.Add("嘉兴", "101210301");
            WeatherCityList.Add("杭州", "101210101");
            WeatherCityList.Add("绍兴", "101210501");
            WeatherCityList.Add("宁波", "101210401");
            WeatherCityList.Add("舟山", "101211101");
            WeatherCityList.Add("金华", "101210901");
            WeatherCityList.Add("衢州", "101211001");
            WeatherCityList.Add("台州", "101210601");
            WeatherCityList.Add("丽水", "101210801");
            WeatherCityList.Add("温州", "101210701");
            WeatherCityList.Add("南平", "101230901");
            WeatherCityList.Add("宁德", "101230301");
            WeatherCityList.Add("三明", "101230801");
            WeatherCityList.Add("福州", "101230101");
            WeatherCityList.Add("莆田", "101230401");
            WeatherCityList.Add("龙岩", "101230701");
            WeatherCityList.Add("泉州", "101230501");
            WeatherCityList.Add("厦门", "101230201");
            WeatherCityList.Add("漳州", "101230601");
            WeatherCityList.Add("九江", "101240201");
            WeatherCityList.Add("景德镇", "101240801");
            WeatherCityList.Add("南昌", "101240101");
            WeatherCityList.Add("上饶", "101240301");
            WeatherCityList.Add("宜春", "101240501");
            WeatherCityList.Add("萍乡", "101240901");
            WeatherCityList.Add("新余", "101241001");
            WeatherCityList.Add("鹰潭", "101241101");
            WeatherCityList.Add("抚州", "101240401");
            WeatherCityList.Add("吉安", "101240601");
            WeatherCityList.Add("赣州", "101240701");
            WeatherCityList.Add("湛江", "101281001");
            WeatherCityList.Add("茂名", "101282001");
            WeatherCityList.Add("云浮", "101281401");
            WeatherCityList.Add("阳江", "101281801");
            WeatherCityList.Add("肇庆", "101280901");
            WeatherCityList.Add("江门", "101281101");
            WeatherCityList.Add("清远", "101281301");
            WeatherCityList.Add("佛山", "101280800");
            WeatherCityList.Add("中山", "101281701");
            WeatherCityList.Add("珠海", "101280701");
            WeatherCityList.Add("韶关", "101280201");
            WeatherCityList.Add("广州", "101280101");
            WeatherCityList.Add("东莞", "101281601");
            WeatherCityList.Add("深圳", "101280601");
            WeatherCityList.Add("惠州", "101280301");
            WeatherCityList.Add("河源", "101281201");
            WeatherCityList.Add("汕尾", "101282101");
            WeatherCityList.Add("梅州", "101280401");
            WeatherCityList.Add("揭阳", "101281901");
            WeatherCityList.Add("潮州", "101281501");
            WeatherCityList.Add("汕头", "101280501");
            WeatherCityList.Add("百色", "101301001");
            WeatherCityList.Add("河池", "101301201");
            WeatherCityList.Add("柳州", "101300301");
            WeatherCityList.Add("桂林", "101300501");
            WeatherCityList.Add("崇左", "101300201");
            WeatherCityList.Add("南宁", "101300101");
            WeatherCityList.Add("来宾", "101300401");
            WeatherCityList.Add("贺州", "101300701");
            WeatherCityList.Add("贵港", "101300801");
            WeatherCityList.Add("梧州", "101300601");
            WeatherCityList.Add("防城港", "101301401");
            WeatherCityList.Add("钦州", "101301101");
            WeatherCityList.Add("玉林", "101300901");
            WeatherCityList.Add("北海", "101301301");
            WeatherCityList.Add("台北", "101340101");
            WeatherCityList.Add("桃园", "101340102");
            WeatherCityList.Add("新竹", "101340103");
            WeatherCityList.Add("宜兰", "101340104");
            WeatherCityList.Add("苗栗", "101340402");
            WeatherCityList.Add("台中", "101340401");
            WeatherCityList.Add("彰化", "101340403");
            WeatherCityList.Add("南投", "101340404");
            WeatherCityList.Add("花莲", "101340405");
            WeatherCityList.Add("云林", "101340406");
            WeatherCityList.Add("嘉义", "101340202");
            WeatherCityList.Add("台南", "101340203");
            WeatherCityList.Add("高雄", "101340201");
            WeatherCityList.Add("台东", "101340204");
            WeatherCityList.Add("屏东", "101340205");
            WeatherCityList.Add("新加坡", "104010100");
            #endregion

            foreach (KeyValuePair<string, string> kvp in WeatherCityList)
            {
                if (text.Contains(kvp.Key))
                {
                    return kvp.Value;
                }
            }
            return string.Empty;
        }

        public static void CityList()
        {
            #region
            Dictionary<int, string[]> WeiboCityList = new Dictionary<int, string[]>();
            WeiboCityList.Add(1, "11,北京,1,东城".Split(','));
            WeiboCityList.Add(2, "11,北京,2,西城".Split(','));
            WeiboCityList.Add(3, "11,北京,3,崇文".Split(','));
            WeiboCityList.Add(4, "11,北京,4,宣武".Split(','));
            WeiboCityList.Add(5, "11,北京,5,朝阳".Split(','));
            WeiboCityList.Add(6, "11,北京,6,丰台".Split(','));
            WeiboCityList.Add(7, "11,北京,7,石景山".Split(','));
            WeiboCityList.Add(8, "11,北京,8,海淀".Split(','));
            WeiboCityList.Add(9, "11,北京,9,门头沟".Split(','));
            WeiboCityList.Add(10, "11,北京,11,房山".Split(','));
            WeiboCityList.Add(11, "11,北京,12,通州".Split(','));
            WeiboCityList.Add(12, "11,北京,13,顺义".Split(','));
            WeiboCityList.Add(13, "11,北京,14,昌平".Split(','));
            WeiboCityList.Add(14, "11,北京,15,大兴".Split(','));
            WeiboCityList.Add(15, "11,北京,16,怀柔".Split(','));
            WeiboCityList.Add(16, "11,北京,17,平谷".Split(','));
            WeiboCityList.Add(17, "11,北京,28,密云".Split(','));
            WeiboCityList.Add(18, "11,北京,29,延庆".Split(','));
            WeiboCityList.Add(19, "11,北京,1000,不限".Split(','));
            WeiboCityList.Add(20, "12,天津,1,和平区".Split(','));
            WeiboCityList.Add(21, "12,天津,2,河东区".Split(','));
            WeiboCityList.Add(22, "12,天津,3,河西区".Split(','));
            WeiboCityList.Add(23, "12,天津,4,南开区".Split(','));
            WeiboCityList.Add(24, "12,天津,5,河北区".Split(','));
            WeiboCityList.Add(25, "12,天津,6,红桥区".Split(','));
            WeiboCityList.Add(26, "12,天津,7,塘沽区".Split(','));
            WeiboCityList.Add(27, "12,天津,8,汉沽区".Split(','));
            WeiboCityList.Add(28, "12,天津,9,大港区".Split(','));
            WeiboCityList.Add(29, "12,天津,10,东丽区".Split(','));
            WeiboCityList.Add(30, "12,天津,11,西青区".Split(','));
            WeiboCityList.Add(31, "12,天津,12,津南区".Split(','));
            WeiboCityList.Add(32, "12,天津,13,北辰区".Split(','));
            WeiboCityList.Add(33, "12,天津,14,武清区".Split(','));
            WeiboCityList.Add(34, "12,天津,15,宝坻区".Split(','));
            WeiboCityList.Add(35, "12,天津,21,宁河县".Split(','));
            WeiboCityList.Add(36, "12,天津,23,静海县".Split(','));
            WeiboCityList.Add(37, "12,天津,25,蓟县".Split(','));
            WeiboCityList.Add(38, "12,天津,26,滨海新区".Split(','));
            WeiboCityList.Add(39, "12,天津,27,保税区".Split(','));
            WeiboCityList.Add(40, "12,天津,1000,不限".Split(','));
            WeiboCityList.Add(41, "13,河北,1,石家庄".Split(','));
            WeiboCityList.Add(42, "13,河北,2,唐山".Split(','));
            WeiboCityList.Add(43, "13,河北,3,秦皇岛".Split(','));
            WeiboCityList.Add(44, "13,河北,4,邯郸".Split(','));
            WeiboCityList.Add(45, "13,河北,5,邢台".Split(','));
            WeiboCityList.Add(46, "13,河北,6,保定".Split(','));
            WeiboCityList.Add(47, "13,河北,7,张家口".Split(','));
            WeiboCityList.Add(48, "13,河北,8,承德".Split(','));
            WeiboCityList.Add(49, "13,河北,9,沧州".Split(','));
            WeiboCityList.Add(50, "13,河北,10,廊坊".Split(','));
            WeiboCityList.Add(51, "13,河北,11,衡水".Split(','));
            WeiboCityList.Add(52, "13,河北,1000,不限".Split(','));
            WeiboCityList.Add(53, "14,山西,1,太原".Split(','));
            WeiboCityList.Add(54, "14,山西,2,大同".Split(','));
            WeiboCityList.Add(55, "14,山西,3,阳泉".Split(','));
            WeiboCityList.Add(56, "14,山西,4,长治".Split(','));
            WeiboCityList.Add(57, "14,山西,5,晋城".Split(','));
            WeiboCityList.Add(58, "14,山西,6,朔州".Split(','));
            WeiboCityList.Add(59, "14,山西,7,晋中".Split(','));
            WeiboCityList.Add(60, "14,山西,8,运城".Split(','));
            WeiboCityList.Add(61, "14,山西,9,忻州".Split(','));
            WeiboCityList.Add(62, "14,山西,10,临汾".Split(','));
            WeiboCityList.Add(63, "14,山西,23,吕梁".Split(','));
            WeiboCityList.Add(64, "14,山西,1000,不限".Split(','));
            WeiboCityList.Add(65, "15,内蒙古,1,呼和浩特".Split(','));
            WeiboCityList.Add(66, "15,内蒙古,2,包头".Split(','));
            WeiboCityList.Add(67, "15,内蒙古,3,乌海".Split(','));
            WeiboCityList.Add(68, "15,内蒙古,4,赤峰".Split(','));
            WeiboCityList.Add(69, "15,内蒙古,5,通辽".Split(','));
            WeiboCityList.Add(70, "15,内蒙古,6,鄂尔多斯".Split(','));
            WeiboCityList.Add(71, "15,内蒙古,7,呼伦贝尔".Split(','));
            WeiboCityList.Add(72, "15,内蒙古,22,兴安".Split(','));
            WeiboCityList.Add(73, "15,内蒙古,25,锡林郭勒".Split(','));
            WeiboCityList.Add(74, "15,内蒙古,26,乌兰察布".Split(','));
            WeiboCityList.Add(75, "15,内蒙古,28,临河".Split(','));
            WeiboCityList.Add(76, "15,内蒙古,29,阿拉善".Split(','));
            WeiboCityList.Add(77, "15,内蒙古,1000,不限".Split(','));
            WeiboCityList.Add(78, "21,辽宁,1,沈阳".Split(','));
            WeiboCityList.Add(79, "21,辽宁,2,大连".Split(','));
            WeiboCityList.Add(80, "21,辽宁,3,鞍山".Split(','));
            WeiboCityList.Add(81, "21,辽宁,4,抚顺".Split(','));
            WeiboCityList.Add(82, "21,辽宁,5,本溪".Split(','));
            WeiboCityList.Add(83, "21,辽宁,6,丹东".Split(','));
            WeiboCityList.Add(84, "21,辽宁,7,锦州".Split(','));
            WeiboCityList.Add(85, "21,辽宁,8,营口".Split(','));
            WeiboCityList.Add(86, "21,辽宁,9,阜新".Split(','));
            WeiboCityList.Add(87, "21,辽宁,10,辽阳".Split(','));
            WeiboCityList.Add(88, "21,辽宁,11,盘锦".Split(','));
            WeiboCityList.Add(89, "21,辽宁,12,铁岭".Split(','));
            WeiboCityList.Add(90, "21,辽宁,13,朝阳".Split(','));
            WeiboCityList.Add(91, "21,辽宁,14,葫芦岛".Split(','));
            WeiboCityList.Add(92, "21,辽宁,1000,不限".Split(','));
            WeiboCityList.Add(93, "22,吉林,1,长春".Split(','));
            WeiboCityList.Add(94, "22,吉林,2,吉林".Split(','));
            WeiboCityList.Add(95, "22,吉林,3,四平".Split(','));
            WeiboCityList.Add(96, "22,吉林,4,辽源".Split(','));
            WeiboCityList.Add(97, "22,吉林,5,通化".Split(','));
            WeiboCityList.Add(98, "22,吉林,6,白山".Split(','));
            WeiboCityList.Add(99, "22,吉林,7,松原".Split(','));
            WeiboCityList.Add(100, "22,吉林,8,白城".Split(','));
            WeiboCityList.Add(101, "22,吉林,24,延吉".Split(','));
            WeiboCityList.Add(102, "22,吉林,1000,不限".Split(','));
            WeiboCityList.Add(103, "23,黑龙江,1,哈尔滨".Split(','));
            WeiboCityList.Add(104, "23,黑龙江,2,齐齐哈尔".Split(','));
            WeiboCityList.Add(105, "23,黑龙江,3,鸡西".Split(','));
            WeiboCityList.Add(106, "23,黑龙江,4,鹤岗".Split(','));
            WeiboCityList.Add(107, "23,黑龙江,5,双鸭山".Split(','));
            WeiboCityList.Add(108, "23,黑龙江,6,大庆".Split(','));
            WeiboCityList.Add(109, "23,黑龙江,7,伊春".Split(','));
            WeiboCityList.Add(110, "23,黑龙江,8,佳木斯".Split(','));
            WeiboCityList.Add(111, "23,黑龙江,9,七台河".Split(','));
            WeiboCityList.Add(112, "23,黑龙江,10,牡丹江".Split(','));
            WeiboCityList.Add(113, "23,黑龙江,11,黑河".Split(','));
            WeiboCityList.Add(114, "23,黑龙江,12,绥化".Split(','));
            WeiboCityList.Add(115, "23,黑龙江,27,大兴安岭".Split(','));
            WeiboCityList.Add(116, "23,黑龙江,1000,不限".Split(','));
            WeiboCityList.Add(117, "31,上海,1,黄浦区".Split(','));
            WeiboCityList.Add(118, "31,上海,3,卢湾区".Split(','));
            WeiboCityList.Add(119, "31,上海,4,徐汇区".Split(','));
            WeiboCityList.Add(120, "31,上海,5,长宁区".Split(','));
            WeiboCityList.Add(121, "31,上海,6,静安区".Split(','));
            WeiboCityList.Add(122, "31,上海,7,普陀区".Split(','));
            WeiboCityList.Add(123, "31,上海,8,闸北区".Split(','));
            WeiboCityList.Add(124, "31,上海,9,虹口区".Split(','));
            WeiboCityList.Add(125, "31,上海,10,杨浦区".Split(','));
            WeiboCityList.Add(126, "31,上海,12,闵行区".Split(','));
            WeiboCityList.Add(127, "31,上海,13,宝山区".Split(','));
            WeiboCityList.Add(128, "31,上海,14,嘉定区".Split(','));
            WeiboCityList.Add(129, "31,上海,15,浦东新区".Split(','));
            WeiboCityList.Add(130, "31,上海,16,金山区".Split(','));
            WeiboCityList.Add(131, "31,上海,17,松江区".Split(','));
            WeiboCityList.Add(132, "31,上海,18,青浦区".Split(','));
            WeiboCityList.Add(133, "31,上海,19,南汇区".Split(','));
            WeiboCityList.Add(134, "31,上海,20,奉贤区".Split(','));
            WeiboCityList.Add(135, "31,上海,30,崇明区".Split(','));
            WeiboCityList.Add(136, "31,上海,1000,不限".Split(','));
            WeiboCityList.Add(137, "32,江苏,1,南京".Split(','));
            WeiboCityList.Add(138, "32,江苏,2,无锡".Split(','));
            WeiboCityList.Add(139, "32,江苏,3,徐州".Split(','));
            WeiboCityList.Add(140, "32,江苏,4,常州".Split(','));
            WeiboCityList.Add(141, "32,江苏,5,苏州".Split(','));
            WeiboCityList.Add(142, "32,江苏,6,南通".Split(','));
            WeiboCityList.Add(143, "32,江苏,7,连云港".Split(','));
            WeiboCityList.Add(144, "32,江苏,8,淮安".Split(','));
            WeiboCityList.Add(145, "32,江苏,9,盐城".Split(','));
            WeiboCityList.Add(146, "32,江苏,10,扬州".Split(','));
            WeiboCityList.Add(147, "32,江苏,11,镇江".Split(','));
            WeiboCityList.Add(148, "32,江苏,12,泰州".Split(','));
            WeiboCityList.Add(149, "32,江苏,13,宿迁".Split(','));
            WeiboCityList.Add(150, "32,江苏,1000,不限".Split(','));
            WeiboCityList.Add(151, "33,浙江,1,杭州".Split(','));
            WeiboCityList.Add(152, "33,浙江,2,宁波".Split(','));
            WeiboCityList.Add(153, "33,浙江,3,温州".Split(','));
            WeiboCityList.Add(154, "33,浙江,4,嘉兴".Split(','));
            WeiboCityList.Add(155, "33,浙江,5,湖州".Split(','));
            WeiboCityList.Add(156, "33,浙江,6,绍兴".Split(','));
            WeiboCityList.Add(157, "33,浙江,7,金华".Split(','));
            WeiboCityList.Add(158, "33,浙江,8,衢州".Split(','));
            WeiboCityList.Add(159, "33,浙江,9,舟山".Split(','));
            WeiboCityList.Add(160, "33,浙江,10,台州".Split(','));
            WeiboCityList.Add(161, "33,浙江,11,丽水".Split(','));
            WeiboCityList.Add(162, "33,浙江,1000,不限".Split(','));
            WeiboCityList.Add(163, "34,安徽,1,合肥".Split(','));
            WeiboCityList.Add(164, "34,安徽,2,芜湖".Split(','));
            WeiboCityList.Add(165, "34,安徽,3,蚌埠".Split(','));
            WeiboCityList.Add(166, "34,安徽,4,淮南".Split(','));
            WeiboCityList.Add(167, "34,安徽,5,马鞍山".Split(','));
            WeiboCityList.Add(168, "34,安徽,6,淮北".Split(','));
            WeiboCityList.Add(169, "34,安徽,7,铜陵".Split(','));
            WeiboCityList.Add(170, "34,安徽,8,安庆".Split(','));
            WeiboCityList.Add(171, "34,安徽,10,黄山".Split(','));
            WeiboCityList.Add(172, "34,安徽,11,滁州".Split(','));
            WeiboCityList.Add(173, "34,安徽,12,阜阳".Split(','));
            WeiboCityList.Add(174, "34,安徽,13,宿州".Split(','));
            WeiboCityList.Add(175, "34,安徽,14,巢湖".Split(','));
            WeiboCityList.Add(176, "34,安徽,15,六安".Split(','));
            WeiboCityList.Add(177, "34,安徽,16,亳州".Split(','));
            WeiboCityList.Add(178, "34,安徽,17,池州".Split(','));
            WeiboCityList.Add(179, "34,安徽,18,宣城".Split(','));
            WeiboCityList.Add(180, "34,安徽,1000,不限".Split(','));
            WeiboCityList.Add(181, "35,福建,1,福州".Split(','));
            WeiboCityList.Add(182, "35,福建,2,厦门".Split(','));
            WeiboCityList.Add(183, "35,福建,3,莆田".Split(','));
            WeiboCityList.Add(184, "35,福建,4,三明".Split(','));
            WeiboCityList.Add(185, "35,福建,5,泉州".Split(','));
            WeiboCityList.Add(186, "35,福建,6,漳州".Split(','));
            WeiboCityList.Add(187, "35,福建,7,南平".Split(','));
            WeiboCityList.Add(188, "35,福建,8,龙岩".Split(','));
            WeiboCityList.Add(189, "35,福建,9,宁德".Split(','));
            WeiboCityList.Add(190, "35,福建,1000,不限".Split(','));
            WeiboCityList.Add(191, "36,江西,1,南昌".Split(','));
            WeiboCityList.Add(192, "36,江西,2,景德镇".Split(','));
            WeiboCityList.Add(193, "36,江西,3,萍乡".Split(','));
            WeiboCityList.Add(194, "36,江西,4,九江".Split(','));
            WeiboCityList.Add(195, "36,江西,5,新余".Split(','));
            WeiboCityList.Add(196, "36,江西,6,鹰潭".Split(','));
            WeiboCityList.Add(197, "36,江西,7,赣州".Split(','));
            WeiboCityList.Add(198, "36,江西,8,吉安".Split(','));
            WeiboCityList.Add(199, "36,江西,9,宜春".Split(','));
            WeiboCityList.Add(200, "36,江西,10,抚州".Split(','));
            WeiboCityList.Add(201, "36,江西,11,上饶".Split(','));
            WeiboCityList.Add(202, "36,江西,1000,不限".Split(','));
            WeiboCityList.Add(203, "37,山东,1,济南".Split(','));
            WeiboCityList.Add(204, "37,山东,2,青岛".Split(','));
            WeiboCityList.Add(205, "37,山东,3,淄博".Split(','));
            WeiboCityList.Add(206, "37,山东,4,枣庄".Split(','));
            WeiboCityList.Add(207, "37,山东,5,东营".Split(','));
            WeiboCityList.Add(208, "37,山东,6,烟台".Split(','));
            WeiboCityList.Add(209, "37,山东,7,潍坊".Split(','));
            WeiboCityList.Add(210, "37,山东,8,济宁".Split(','));
            WeiboCityList.Add(211, "37,山东,9,泰安".Split(','));
            WeiboCityList.Add(212, "37,山东,10,威海".Split(','));
            WeiboCityList.Add(213, "37,山东,11,日照".Split(','));
            WeiboCityList.Add(214, "37,山东,12,莱芜".Split(','));
            WeiboCityList.Add(215, "37,山东,13,临沂".Split(','));
            WeiboCityList.Add(216, "37,山东,14,德州".Split(','));
            WeiboCityList.Add(217, "37,山东,15,聊城".Split(','));
            WeiboCityList.Add(218, "37,山东,16,滨州".Split(','));
            WeiboCityList.Add(219, "37,山东,17,菏泽".Split(','));
            WeiboCityList.Add(220, "37,山东,1000,不限".Split(','));
            WeiboCityList.Add(221, "41,河南,1,郑州".Split(','));
            WeiboCityList.Add(222, "41,河南,2,开封".Split(','));
            WeiboCityList.Add(223, "41,河南,3,洛阳".Split(','));
            WeiboCityList.Add(224, "41,河南,4,平顶山".Split(','));
            WeiboCityList.Add(225, "41,河南,5,安阳".Split(','));
            WeiboCityList.Add(226, "41,河南,6,鹤壁".Split(','));
            WeiboCityList.Add(227, "41,河南,7,新乡".Split(','));
            WeiboCityList.Add(228, "41,河南,8,焦作".Split(','));
            WeiboCityList.Add(229, "41,河南,9,濮阳".Split(','));
            WeiboCityList.Add(230, "41,河南,10,许昌".Split(','));
            WeiboCityList.Add(231, "41,河南,11,漯河".Split(','));
            WeiboCityList.Add(232, "41,河南,12,三门峡".Split(','));
            WeiboCityList.Add(233, "41,河南,13,南阳".Split(','));
            WeiboCityList.Add(234, "41,河南,14,商丘".Split(','));
            WeiboCityList.Add(235, "41,河南,15,信阳".Split(','));
            WeiboCityList.Add(236, "41,河南,16,周口".Split(','));
            WeiboCityList.Add(237, "41,河南,17,驻马店".Split(','));
            WeiboCityList.Add(238, "41,河南,18,济源".Split(','));
            WeiboCityList.Add(239, "41,河南,1000,不限".Split(','));
            WeiboCityList.Add(240, "42,湖北,1,武汉".Split(','));
            WeiboCityList.Add(241, "42,湖北,2,黄石".Split(','));
            WeiboCityList.Add(242, "42,湖北,3,十堰".Split(','));
            WeiboCityList.Add(243, "42,湖北,5,宜昌".Split(','));
            WeiboCityList.Add(244, "42,湖北,6,襄阳".Split(','));
            WeiboCityList.Add(245, "42,湖北,7,鄂州".Split(','));
            WeiboCityList.Add(246, "42,湖北,8,荆门".Split(','));
            WeiboCityList.Add(247, "42,湖北,9,孝感".Split(','));
            WeiboCityList.Add(248, "42,湖北,10,荆州".Split(','));
            WeiboCityList.Add(249, "42,湖北,11,黄冈".Split(','));
            WeiboCityList.Add(250, "42,湖北,12,咸宁".Split(','));
            WeiboCityList.Add(251, "42,湖北,13,随州".Split(','));
            WeiboCityList.Add(252, "42,湖北,28,恩施".Split(','));
            WeiboCityList.Add(253, "42,湖北,29,仙桃".Split(','));
            WeiboCityList.Add(254, "42,湖北,30,潜江".Split(','));
            WeiboCityList.Add(255, "42,湖北,31,天门".Split(','));
            WeiboCityList.Add(256, "42,湖北,32,神农架".Split(','));
            WeiboCityList.Add(257, "42,湖北,1000,不限".Split(','));
            WeiboCityList.Add(258, "43,湖南,1,长沙".Split(','));
            WeiboCityList.Add(259, "43,湖南,2,株洲".Split(','));
            WeiboCityList.Add(260, "43,湖南,3,湘潭".Split(','));
            WeiboCityList.Add(261, "43,湖南,4,衡阳".Split(','));
            WeiboCityList.Add(262, "43,湖南,5,邵阳".Split(','));
            WeiboCityList.Add(263, "43,湖南,6,岳阳".Split(','));
            WeiboCityList.Add(264, "43,湖南,7,常德".Split(','));
            WeiboCityList.Add(265, "43,湖南,8,张家界".Split(','));
            WeiboCityList.Add(266, "43,湖南,9,益阳".Split(','));
            WeiboCityList.Add(267, "43,湖南,10,郴州".Split(','));
            WeiboCityList.Add(268, "43,湖南,11,永州".Split(','));
            WeiboCityList.Add(269, "43,湖南,12,怀化".Split(','));
            WeiboCityList.Add(270, "43,湖南,13,娄底".Split(','));
            WeiboCityList.Add(271, "43,湖南,31,吉首".Split(','));
            WeiboCityList.Add(272, "43,湖南,1000,不限".Split(','));
            WeiboCityList.Add(273, "44,广东,1,广州".Split(','));
            WeiboCityList.Add(274, "44,广东,2,韶关".Split(','));
            WeiboCityList.Add(275, "44,广东,3,深圳".Split(','));
            WeiboCityList.Add(276, "44,广东,4,珠海".Split(','));
            WeiboCityList.Add(277, "44,广东,5,汕头".Split(','));
            WeiboCityList.Add(278, "44,广东,6,佛山".Split(','));
            WeiboCityList.Add(279, "44,广东,7,江门".Split(','));
            WeiboCityList.Add(280, "44,广东,8,湛江".Split(','));
            WeiboCityList.Add(281, "44,广东,9,茂名".Split(','));
            WeiboCityList.Add(282, "44,广东,12,肇庆".Split(','));
            WeiboCityList.Add(283, "44,广东,13,惠州".Split(','));
            WeiboCityList.Add(284, "44,广东,14,梅州".Split(','));
            WeiboCityList.Add(285, "44,广东,15,汕尾".Split(','));
            WeiboCityList.Add(286, "44,广东,16,河源".Split(','));
            WeiboCityList.Add(287, "44,广东,17,阳江".Split(','));
            WeiboCityList.Add(288, "44,广东,18,清远".Split(','));
            WeiboCityList.Add(289, "44,广东,19,东莞".Split(','));
            WeiboCityList.Add(290, "44,广东,20,中山".Split(','));
            WeiboCityList.Add(291, "44,广东,51,潮州".Split(','));
            WeiboCityList.Add(292, "44,广东,52,揭阳".Split(','));
            WeiboCityList.Add(293, "44,广东,53,云浮".Split(','));
            WeiboCityList.Add(294, "44,广东,1000,不限".Split(','));
            WeiboCityList.Add(295, "45,广西,1,南宁".Split(','));
            WeiboCityList.Add(296, "45,广西,3,桂林".Split(','));
            WeiboCityList.Add(297, "45,广西,4,梧州".Split(','));
            WeiboCityList.Add(298, "45,广西,5,北海".Split(','));
            WeiboCityList.Add(299, "45,广西,6,防城港".Split(','));
            WeiboCityList.Add(300, "45,广西,7,钦州".Split(','));
            WeiboCityList.Add(301, "45,广西,8,贵港".Split(','));
            WeiboCityList.Add(302, "45,广西,9,玉林".Split(','));
            WeiboCityList.Add(303, "45,广西,10,百色".Split(','));
            WeiboCityList.Add(304, "45,广西,11,贺州".Split(','));
            WeiboCityList.Add(305, "45,广西,12,河池".Split(','));
            WeiboCityList.Add(306, "45,广西,13,来宾".Split(','));
            WeiboCityList.Add(307, "45,广西,14,崇左".Split(','));
            WeiboCityList.Add(308, "45,广西,22,柳州".Split(','));
            WeiboCityList.Add(309, "45,广西,1000,不限".Split(','));
            WeiboCityList.Add(310, "46,海南,1,海口".Split(','));
            WeiboCityList.Add(311, "46,海南,2,三亚".Split(','));
            WeiboCityList.Add(312, "46,海南,90,其他".Split(','));
            WeiboCityList.Add(313, "46,海南,1000,不限".Split(','));
            WeiboCityList.Add(314, "50,重庆,1,万州区".Split(','));
            WeiboCityList.Add(315, "50,重庆,2,涪陵区".Split(','));
            WeiboCityList.Add(316, "50,重庆,3,渝中区".Split(','));
            WeiboCityList.Add(317, "50,重庆,4,大渡口区".Split(','));
            WeiboCityList.Add(318, "50,重庆,5,江北区".Split(','));
            WeiboCityList.Add(319, "50,重庆,6,沙坪坝区".Split(','));
            WeiboCityList.Add(320, "50,重庆,7,九龙坡区".Split(','));
            WeiboCityList.Add(321, "50,重庆,8,南岸区".Split(','));
            WeiboCityList.Add(322, "50,重庆,9,北碚区".Split(','));
            WeiboCityList.Add(323, "50,重庆,10,万盛区".Split(','));
            WeiboCityList.Add(324, "50,重庆,11,双桥区".Split(','));
            WeiboCityList.Add(325, "50,重庆,12,渝北区".Split(','));
            WeiboCityList.Add(326, "50,重庆,13,巴南区".Split(','));
            WeiboCityList.Add(327, "50,重庆,14,黔江区".Split(','));
            WeiboCityList.Add(328, "50,重庆,15,长寿区".Split(','));
            WeiboCityList.Add(329, "50,重庆,22,綦江县".Split(','));
            WeiboCityList.Add(330, "50,重庆,23,潼南县".Split(','));
            WeiboCityList.Add(331, "50,重庆,24,铜梁县".Split(','));
            WeiboCityList.Add(332, "50,重庆,25,大足县".Split(','));
            WeiboCityList.Add(333, "50,重庆,26,荣昌县".Split(','));
            WeiboCityList.Add(334, "50,重庆,27,璧山县".Split(','));
            WeiboCityList.Add(335, "50,重庆,28,梁平县".Split(','));
            WeiboCityList.Add(336, "50,重庆,29,城口县".Split(','));
            WeiboCityList.Add(337, "50,重庆,30,丰都县".Split(','));
            WeiboCityList.Add(338, "50,重庆,31,垫江县".Split(','));
            WeiboCityList.Add(339, "50,重庆,32,武隆县".Split(','));
            WeiboCityList.Add(340, "50,重庆,33,忠县".Split(','));
            WeiboCityList.Add(341, "50,重庆,34,开县".Split(','));
            WeiboCityList.Add(342, "50,重庆,35,云阳县".Split(','));
            WeiboCityList.Add(343, "50,重庆,36,奉节县".Split(','));
            WeiboCityList.Add(344, "50,重庆,37,巫山县".Split(','));
            WeiboCityList.Add(345, "50,重庆,38,巫溪县".Split(','));
            WeiboCityList.Add(346, "50,重庆,40,石柱土家族自治县".Split(','));
            WeiboCityList.Add(347, "50,重庆,41,秀山土家族苗族自治县".Split(','));
            WeiboCityList.Add(348, "50,重庆,42,酉阳土家族苗族自治县".Split(','));
            WeiboCityList.Add(349, "50,重庆,43,彭水苗族土家族自治县".Split(','));
            WeiboCityList.Add(350, "50,重庆,81,江津区".Split(','));
            WeiboCityList.Add(351, "50,重庆,82,合川市".Split(','));
            WeiboCityList.Add(352, "50,重庆,83,永川区".Split(','));
            WeiboCityList.Add(353, "50,重庆,84,南川市".Split(','));
            WeiboCityList.Add(354, "50,重庆,1000,不限".Split(','));
            WeiboCityList.Add(355, "51,四川,1,成都".Split(','));
            WeiboCityList.Add(356, "51,四川,3,自贡".Split(','));
            WeiboCityList.Add(357, "51,四川,4,攀枝花".Split(','));
            WeiboCityList.Add(358, "51,四川,5,泸州".Split(','));
            WeiboCityList.Add(359, "51,四川,6,德阳".Split(','));
            WeiboCityList.Add(360, "51,四川,7,绵阳".Split(','));
            WeiboCityList.Add(361, "51,四川,8,广元".Split(','));
            WeiboCityList.Add(362, "51,四川,9,遂宁".Split(','));
            WeiboCityList.Add(363, "51,四川,10,内江".Split(','));
            WeiboCityList.Add(364, "51,四川,11,乐山".Split(','));
            WeiboCityList.Add(365, "51,四川,13,南充".Split(','));
            WeiboCityList.Add(366, "51,四川,14,眉山".Split(','));
            WeiboCityList.Add(367, "51,四川,15,宜宾".Split(','));
            WeiboCityList.Add(368, "51,四川,16,广安".Split(','));
            WeiboCityList.Add(369, "51,四川,17,达州".Split(','));
            WeiboCityList.Add(370, "51,四川,18,雅安".Split(','));
            WeiboCityList.Add(371, "51,四川,19,巴中".Split(','));
            WeiboCityList.Add(372, "51,四川,20,资阳".Split(','));
            WeiboCityList.Add(373, "51,四川,32,阿坝".Split(','));
            WeiboCityList.Add(374, "51,四川,33,甘孜".Split(','));
            WeiboCityList.Add(375, "51,四川,34,凉山".Split(','));
            WeiboCityList.Add(376, "51,四川,1000,不限".Split(','));
            WeiboCityList.Add(377, "52,贵州,1,贵阳".Split(','));
            WeiboCityList.Add(378, "52,贵州,2,水城".Split(','));
            WeiboCityList.Add(379, "52,贵州,3,遵义".Split(','));
            WeiboCityList.Add(380, "52,贵州,4,安顺".Split(','));
            WeiboCityList.Add(381, "52,贵州,22,铜仁".Split(','));
            WeiboCityList.Add(382, "52,贵州,23,兴义".Split(','));
            WeiboCityList.Add(383, "52,贵州,24,毕节".Split(','));
            WeiboCityList.Add(384, "52,贵州,26,凯里".Split(','));
            WeiboCityList.Add(385, "52,贵州,27,都匀".Split(','));
            WeiboCityList.Add(386, "52,贵州,1000,不限".Split(','));
            WeiboCityList.Add(387, "53,云南,1,昆明".Split(','));
            WeiboCityList.Add(388, "53,云南,3,曲靖".Split(','));
            WeiboCityList.Add(389, "53,云南,4,玉溪".Split(','));
            WeiboCityList.Add(390, "53,云南,5,保山".Split(','));
            WeiboCityList.Add(391, "53,云南,6,昭通".Split(','));
            WeiboCityList.Add(392, "53,云南,23,楚雄".Split(','));
            WeiboCityList.Add(393, "53,云南,25,红河".Split(','));
            WeiboCityList.Add(394, "53,云南,26,文山".Split(','));
            WeiboCityList.Add(395, "53,云南,27,普洱".Split(','));
            WeiboCityList.Add(396, "53,云南,28,西双版纳".Split(','));
            WeiboCityList.Add(397, "53,云南,29,大理".Split(','));
            WeiboCityList.Add(398, "53,云南,31,德宏".Split(','));
            WeiboCityList.Add(399, "53,云南,32,丽江".Split(','));
            WeiboCityList.Add(400, "53,云南,33,怒江".Split(','));
            WeiboCityList.Add(401, "53,云南,34,迪庆".Split(','));
            WeiboCityList.Add(402, "53,云南,35,临沧".Split(','));
            WeiboCityList.Add(403, "53,云南,1000,不限".Split(','));
            WeiboCityList.Add(404, "54,西藏,1,拉萨".Split(','));
            WeiboCityList.Add(405, "54,西藏,21,昌都".Split(','));
            WeiboCityList.Add(406, "54,西藏,22,山南".Split(','));
            WeiboCityList.Add(407, "54,西藏,23,日喀则".Split(','));
            WeiboCityList.Add(408, "54,西藏,24,那曲".Split(','));
            WeiboCityList.Add(409, "54,西藏,25,阿里".Split(','));
            WeiboCityList.Add(410, "54,西藏,26,林芝".Split(','));
            WeiboCityList.Add(411, "54,西藏,1000,不限".Split(','));
            WeiboCityList.Add(412, "61,陕西,1,西安".Split(','));
            WeiboCityList.Add(413, "61,陕西,2,铜川".Split(','));
            WeiboCityList.Add(414, "61,陕西,3,宝鸡".Split(','));
            WeiboCityList.Add(415, "61,陕西,4,咸阳".Split(','));
            WeiboCityList.Add(416, "61,陕西,5,渭南".Split(','));
            WeiboCityList.Add(417, "61,陕西,6,延安".Split(','));
            WeiboCityList.Add(418, "61,陕西,7,汉中".Split(','));
            WeiboCityList.Add(419, "61,陕西,8,榆林".Split(','));
            WeiboCityList.Add(420, "61,陕西,9,安康".Split(','));
            WeiboCityList.Add(421, "61,陕西,10,商洛".Split(','));
            WeiboCityList.Add(422, "61,陕西,1000,不限".Split(','));
            WeiboCityList.Add(423, "62,甘肃,1,兰州".Split(','));
            WeiboCityList.Add(424, "62,甘肃,2,嘉峪关".Split(','));
            WeiboCityList.Add(425, "62,甘肃,3,金昌".Split(','));
            WeiboCityList.Add(426, "62,甘肃,4,白银".Split(','));
            WeiboCityList.Add(427, "62,甘肃,5,天水".Split(','));
            WeiboCityList.Add(428, "62,甘肃,6,武威".Split(','));
            WeiboCityList.Add(429, "62,甘肃,7,张掖".Split(','));
            WeiboCityList.Add(430, "62,甘肃,8,平凉".Split(','));
            WeiboCityList.Add(431, "62,甘肃,9,酒泉".Split(','));
            WeiboCityList.Add(432, "62,甘肃,10,庆阳".Split(','));
            WeiboCityList.Add(433, "62,甘肃,24,定西".Split(','));
            WeiboCityList.Add(434, "62,甘肃,26,平凉".Split(','));
            WeiboCityList.Add(435, "62,甘肃,29,临夏".Split(','));
            WeiboCityList.Add(436, "62,甘肃,30,合作".Split(','));
            WeiboCityList.Add(437, "62,甘肃,1000,不限".Split(','));
            WeiboCityList.Add(438, "63,青海,1,西宁".Split(','));
            WeiboCityList.Add(439, "63,青海,21,海东".Split(','));
            WeiboCityList.Add(440, "63,青海,22,海北".Split(','));
            WeiboCityList.Add(441, "63,青海,23,黄南".Split(','));
            WeiboCityList.Add(442, "63,青海,25,海南".Split(','));
            WeiboCityList.Add(443, "63,青海,26,果洛".Split(','));
            WeiboCityList.Add(444, "63,青海,27,玉树".Split(','));
            WeiboCityList.Add(445, "63,青海,28,海西".Split(','));
            WeiboCityList.Add(446, "63,青海,1000,不限".Split(','));
            WeiboCityList.Add(447, "64,宁夏,1,银川".Split(','));
            WeiboCityList.Add(448, "64,宁夏,2,石嘴山".Split(','));
            WeiboCityList.Add(449, "64,宁夏,3,吴忠".Split(','));
            WeiboCityList.Add(450, "64,宁夏,4,固原".Split(','));
            WeiboCityList.Add(451, "64,宁夏,5,中卫".Split(','));
            WeiboCityList.Add(452, "64,宁夏,1000,不限".Split(','));
            WeiboCityList.Add(453, "65,新疆,1,乌鲁木齐".Split(','));
            WeiboCityList.Add(454, "65,新疆,2,克拉玛依".Split(','));
            WeiboCityList.Add(455, "65,新疆,21,吐鲁番".Split(','));
            WeiboCityList.Add(456, "65,新疆,22,哈密".Split(','));
            WeiboCityList.Add(457, "65,新疆,23,昌吉".Split(','));
            WeiboCityList.Add(458, "65,新疆,27,博尔塔拉".Split(','));
            WeiboCityList.Add(459, "65,新疆,28,巴音郭楞".Split(','));
            WeiboCityList.Add(460, "65,新疆,29,阿克苏".Split(','));
            WeiboCityList.Add(461, "65,新疆,30,克孜勒".Split(','));
            WeiboCityList.Add(462, "65,新疆,31,喀什".Split(','));
            WeiboCityList.Add(463, "65,新疆,32,和田".Split(','));
            WeiboCityList.Add(464, "65,新疆,40,伊犁".Split(','));
            WeiboCityList.Add(465, "65,新疆,42,塔城".Split(','));
            WeiboCityList.Add(466, "65,新疆,43,阿勒泰".Split(','));
            WeiboCityList.Add(467, "65,新疆,44,石河子".Split(','));
            WeiboCityList.Add(468, "65,新疆,1000,不限".Split(','));
            WeiboCityList.Add(469, "71,台湾,1,台北".Split(','));
            WeiboCityList.Add(470, "71,台湾,2,高雄".Split(','));
            WeiboCityList.Add(471, "71,台湾,3,基隆".Split(','));
            WeiboCityList.Add(472, "71,台湾,4,台中".Split(','));
            WeiboCityList.Add(473, "71,台湾,5,台南".Split(','));
            WeiboCityList.Add(474, "71,台湾,6,新竹".Split(','));
            WeiboCityList.Add(475, "71,台湾,7,嘉义".Split(','));
            WeiboCityList.Add(476, "71,台湾,8,台北县".Split(','));
            WeiboCityList.Add(477, "71,台湾,9,宜兰县".Split(','));
            WeiboCityList.Add(478, "71,台湾,10,桃园县".Split(','));
            WeiboCityList.Add(479, "71,台湾,11,新竹县".Split(','));
            WeiboCityList.Add(480, "71,台湾,12,苗栗县".Split(','));
            WeiboCityList.Add(481, "71,台湾,13,台中县".Split(','));
            WeiboCityList.Add(482, "71,台湾,14,彰化县".Split(','));
            WeiboCityList.Add(483, "71,台湾,15,南投县".Split(','));
            WeiboCityList.Add(484, "71,台湾,16,云林县".Split(','));
            WeiboCityList.Add(485, "71,台湾,17,嘉义县".Split(','));
            WeiboCityList.Add(486, "71,台湾,18,台南县".Split(','));
            WeiboCityList.Add(487, "71,台湾,19,高雄县".Split(','));
            WeiboCityList.Add(488, "71,台湾,20,屏东县".Split(','));
            WeiboCityList.Add(489, "71,台湾,21,澎湖县".Split(','));
            WeiboCityList.Add(490, "71,台湾,22,台东县".Split(','));
            WeiboCityList.Add(491, "71,台湾,23,花莲县".Split(','));
            WeiboCityList.Add(492, "71,台湾,1000,不限".Split(','));
            WeiboCityList.Add(493, "81,香港,2,中西区".Split(','));
            WeiboCityList.Add(494, "81,香港,3,东区".Split(','));
            WeiboCityList.Add(495, "81,香港,4,九龙城区".Split(','));
            WeiboCityList.Add(496, "81,香港,5,观塘区".Split(','));
            WeiboCityList.Add(497, "81,香港,6,南区".Split(','));
            WeiboCityList.Add(498, "81,香港,7,深水埗区".Split(','));
            WeiboCityList.Add(499, "81,香港,8,黄大仙区".Split(','));
            WeiboCityList.Add(500, "81,香港,9,湾仔区".Split(','));
            WeiboCityList.Add(501, "81,香港,10,油尖旺区".Split(','));
            WeiboCityList.Add(502, "81,香港,11,离岛区".Split(','));
            WeiboCityList.Add(503, "81,香港,12,葵青区".Split(','));
            WeiboCityList.Add(504, "81,香港,13,北区".Split(','));
            WeiboCityList.Add(505, "81,香港,14,西贡区".Split(','));
            WeiboCityList.Add(506, "81,香港,15,沙田区".Split(','));
            WeiboCityList.Add(507, "81,香港,16,屯门区".Split(','));
            WeiboCityList.Add(508, "81,香港,17,大埔区".Split(','));
            WeiboCityList.Add(509, "81,香港,18,荃湾区".Split(','));
            WeiboCityList.Add(510, "81,香港,19,元朗区".Split(','));
            WeiboCityList.Add(511, "81,香港,1000,不限".Split(','));
            WeiboCityList.Add(512, "82,澳门,2,花地玛堂区".Split(','));
            WeiboCityList.Add(513, "82,澳门,3,圣安多尼堂区".Split(','));
            WeiboCityList.Add(514, "82,澳门,4,大堂区".Split(','));
            WeiboCityList.Add(515, "82,澳门,5,望德堂区".Split(','));
            WeiboCityList.Add(516, "82,澳门,6,风顺堂区".Split(','));
            WeiboCityList.Add(517, "82,澳门,7,氹仔".Split(','));
            WeiboCityList.Add(518, "82,澳门,8,路环".Split(','));
            WeiboCityList.Add(519, "82,澳门,1000,不限".Split(','));
            WeiboCityList.Add(520, "100,其他,1000,不限".Split(','));
            WeiboCityList.Add(521, "400,海外,1,美国".Split(','));
            WeiboCityList.Add(522, "400,海外,2,英国".Split(','));
            WeiboCityList.Add(523, "400,海外,3,法国".Split(','));
            WeiboCityList.Add(524, "400,海外,4,俄罗斯".Split(','));
            WeiboCityList.Add(525, "400,海外,5,加拿大".Split(','));
            WeiboCityList.Add(526, "400,海外,6,巴西".Split(','));
            WeiboCityList.Add(527, "400,海外,7,澳大利亚".Split(','));
            WeiboCityList.Add(528, "400,海外,8,印尼".Split(','));
            WeiboCityList.Add(529, "400,海外,9,泰国".Split(','));
            WeiboCityList.Add(530, "400,海外,10,马来西亚".Split(','));
            WeiboCityList.Add(531, "400,海外,11,新加坡".Split(','));
            WeiboCityList.Add(532, "400,海外,12,菲律宾".Split(','));
            WeiboCityList.Add(533, "400,海外,13,越南".Split(','));
            WeiboCityList.Add(534, "400,海外,14,印度".Split(','));
            WeiboCityList.Add(535, "400,海外,15,日本".Split(','));
            WeiboCityList.Add(536, "400,海外,16,其他".Split(','));
            WeiboCityList.Add(537, "400,海外,17,新西兰".Split(','));
            WeiboCityList.Add(538, "400,海外,18,韩国".Split(','));
            WeiboCityList.Add(539, "400,海外,19,德国".Split(','));
            WeiboCityList.Add(540, "400,海外,20,意大利".Split(','));
            WeiboCityList.Add(541, "400,海外,21,爱尔兰".Split(','));
            WeiboCityList.Add(542, "400,海外,22,荷兰".Split(','));
            WeiboCityList.Add(543, "400,海外,23,瑞士".Split(','));
            WeiboCityList.Add(544, "400,海外,24,乌克兰".Split(','));
            WeiboCityList.Add(545, "400,海外,25,南非".Split(','));
            WeiboCityList.Add(546, "400,海外,26,芬兰".Split(','));
            WeiboCityList.Add(547, "400,海外,27,瑞典".Split(','));
            WeiboCityList.Add(548, "400,海外,28,奥地利".Split(','));
            WeiboCityList.Add(549, "400,海外,29,西班牙".Split(','));
            WeiboCityList.Add(550, "400,海外,30,比利时".Split(','));
            WeiboCityList.Add(551, "400,海外,31,挪威".Split(','));
            WeiboCityList.Add(552, "400,海外,32,丹麦".Split(','));
            WeiboCityList.Add(553, "400,海外,33,波兰".Split(','));
            WeiboCityList.Add(554, "400,海外,34,阿根廷".Split(','));
            WeiboCityList.Add(555, "400,海外,35,白俄罗斯".Split(','));
            WeiboCityList.Add(556, "400,海外,36,哥伦比亚".Split(','));
            WeiboCityList.Add(557, "400,海外,37,古巴".Split(','));
            WeiboCityList.Add(558, "400,海外,38,埃及".Split(','));
            WeiboCityList.Add(559, "400,海外,39,希腊".Split(','));
            WeiboCityList.Add(560, "400,海外,40,匈牙利".Split(','));
            WeiboCityList.Add(561, "400,海外,41,伊朗".Split(','));
            WeiboCityList.Add(562, "400,海外,42,蒙古".Split(','));
            WeiboCityList.Add(563, "400,海外,43,墨西哥".Split(','));
            WeiboCityList.Add(564, "400,海外,44,葡萄牙".Split(','));
            WeiboCityList.Add(565, "400,海外,45,沙特阿拉伯".Split(','));
            WeiboCityList.Add(566, "400,海外,46,土耳其".Split(','));
            WeiboCityList.Add(567, "400,海外,1000,不限".Split(','));


            Dictionary<string, string> WeatherCityList = new Dictionary<string, string>();
            WeatherCityList.Add("澳门", "101330101");
            WeatherCityList.Add("北京", "101010100");
            WeatherCityList.Add("上海", "101020100");
            WeatherCityList.Add("天津", "101030100");
            WeatherCityList.Add("重庆", "101040100");
            WeatherCityList.Add("香港", "101320101");
            WeatherCityList.Add("大兴安岭", "101050701");
            WeatherCityList.Add("黑河", "101050601");
            WeatherCityList.Add("齐齐哈尔", "101050201");
            WeatherCityList.Add("大庆", "101050901");
            WeatherCityList.Add("绥化", "101050501");
            WeatherCityList.Add("伊春", "101050801");
            WeatherCityList.Add("哈尔滨", "101050101");
            WeatherCityList.Add("鹤岗", "101051201");
            WeatherCityList.Add("佳木斯", "101050401");
            WeatherCityList.Add("双鸭山", "101051301");
            WeatherCityList.Add("七台河", "101051002");
            WeatherCityList.Add("牡丹江", "101050301");
            WeatherCityList.Add("鸡西", "101051101");
            WeatherCityList.Add("白城", "101060601");
            WeatherCityList.Add("松原", "101060801");
            WeatherCityList.Add("长春", "101060101");
            WeatherCityList.Add("四平", "101060401");
            WeatherCityList.Add("吉林", "101060201");
            WeatherCityList.Add("辽源", "101060701");
            WeatherCityList.Add("通化", "101060501");
            WeatherCityList.Add("延吉", "101060312");
            WeatherCityList.Add("白山", "101060901");
            WeatherCityList.Add("朝阳", "101071201");
            WeatherCityList.Add("葫芦岛", "101071401");
            WeatherCityList.Add("锦州", "101070701");
            WeatherCityList.Add("阜新", "101070901");
            WeatherCityList.Add("盘锦", "101071301");
            WeatherCityList.Add("营口", "101070801");
            WeatherCityList.Add("大连", "101070201");
            WeatherCityList.Add("沈阳", "101070101");
            WeatherCityList.Add("辽阳", "101071001");
            WeatherCityList.Add("鞍山", "101070301");
            WeatherCityList.Add("铁岭", "101071101");
            WeatherCityList.Add("抚顺", "101070401");
            WeatherCityList.Add("本溪", "101070501");
            WeatherCityList.Add("丹东", "101070601");
            WeatherCityList.Add("昌江", "101310206");
            WeatherCityList.Add("东方", "101310202");
            WeatherCityList.Add("乐东", "101310221");
            WeatherCityList.Add("三亚", "101310201");
            WeatherCityList.Add("儋州", "101310205");
            WeatherCityList.Add("白沙", "101310207");
            WeatherCityList.Add("五指山", "101310222");
            WeatherCityList.Add("保亭", "101310214");
            WeatherCityList.Add("临高", "101310203");
            WeatherCityList.Add("琼中", "101310208");
            WeatherCityList.Add("陵水", "101310216");
            WeatherCityList.Add("澄迈", "101310204");
            WeatherCityList.Add("屯昌", "101310210");
            WeatherCityList.Add("海口", "101310101");
            WeatherCityList.Add("定安", "101310209");
            WeatherCityList.Add("琼海", "101310211");
            WeatherCityList.Add("万宁", "101310215");
            WeatherCityList.Add("文昌", "101310212");
            WeatherCityList.Add("阿拉善", "101081201");
            WeatherCityList.Add("临河", "101080801");
            WeatherCityList.Add("鄂尔多斯", "101080701");
            WeatherCityList.Add("包头", "101080201");
            WeatherCityList.Add("呼和浩特", "101080101");
            WeatherCityList.Add("乌兰察布", "101080401");
            WeatherCityList.Add("锡林郭勒", "101080901");
            WeatherCityList.Add("赤峰", "101080601");
            WeatherCityList.Add("通辽", "101080501");
            WeatherCityList.Add("兴安", "101081101");
            WeatherCityList.Add("呼伦贝尔", "101081000");
            WeatherCityList.Add("乌海", "101080301");
            WeatherCityList.Add("阿勒泰", "101131401");
            WeatherCityList.Add("塔城", "101131101");
            WeatherCityList.Add("克拉玛依", "101130201");
            WeatherCityList.Add("博尔塔拉", "101131601");
            WeatherCityList.Add("伊犁", "101131001");
            WeatherCityList.Add("昌吉", "101130401");
            WeatherCityList.Add("乌鲁木齐", "101130101");
            WeatherCityList.Add("吐鲁番", "101130501");
            WeatherCityList.Add("哈密", "101131201");
            WeatherCityList.Add("克孜勒", "101130503");
            WeatherCityList.Add("阿克苏", "101130801");
            WeatherCityList.Add("喀什", "101130901");
            WeatherCityList.Add("巴音郭楞", "101130601");
            WeatherCityList.Add("和田", "101131301");
            WeatherCityList.Add("石河子", "101130301");
            WeatherCityList.Add("阿里", "101140701");
            WeatherCityList.Add("那曲", "101140601");
            WeatherCityList.Add("日喀则", "101140201");
            WeatherCityList.Add("拉萨", "101140101");
            WeatherCityList.Add("山南", "101140301");
            WeatherCityList.Add("林芝", "101140401");
            WeatherCityList.Add("昌都", "101140501");
            WeatherCityList.Add("海西", "101150701");
            WeatherCityList.Add("玉树", "101150601");
            WeatherCityList.Add("海北", "101150801");
            WeatherCityList.Add("西宁", "101150101");
            WeatherCityList.Add("海南", "101150401");
            WeatherCityList.Add("果洛", "101150501");
            WeatherCityList.Add("海东", "101150201");
            WeatherCityList.Add("黄南", "101150301");
            WeatherCityList.Add("格尔木", "101150901");
            WeatherCityList.Add("石嘴山", "101170201");
            WeatherCityList.Add("银川", "101170101");
            WeatherCityList.Add("中卫", "101170501");
            WeatherCityList.Add("吴忠", "101170301");
            WeatherCityList.Add("固原", "101170401");
            WeatherCityList.Add("酒泉", "101160801");
            WeatherCityList.Add("嘉峪关", "101161401");
            WeatherCityList.Add("张掖", "101160701");
            WeatherCityList.Add("金昌", "101160601");
            WeatherCityList.Add("武威", "101160501");
            WeatherCityList.Add("白银", "101161301");
            WeatherCityList.Add("兰州", "101160101");
            WeatherCityList.Add("临夏", "101161101");
            WeatherCityList.Add("合作", "101161201");
            WeatherCityList.Add("定西", "101160201");
            WeatherCityList.Add("庆阳", "101160401");
            WeatherCityList.Add("平凉", "101160301");
            WeatherCityList.Add("天水", "101160901");
            WeatherCityList.Add("陇南", "101161001");
            WeatherCityList.Add("张家口", "101090301");
            WeatherCityList.Add("承德", "101090402");
            WeatherCityList.Add("秦皇岛", "101091101");
            WeatherCityList.Add("唐山", "101090501");
            WeatherCityList.Add("保定", "101090201");
            WeatherCityList.Add("廊坊", "101090601");
            WeatherCityList.Add("石家庄", "101090101");
            WeatherCityList.Add("沧州", "101090701");
            WeatherCityList.Add("衡水", "101090801");
            WeatherCityList.Add("邢台", "101090901");
            WeatherCityList.Add("邯郸", "101091001");
            WeatherCityList.Add("安阳", "101180201");
            WeatherCityList.Add("鹤壁", "101181201");
            WeatherCityList.Add("濮阳", "101181301");
            WeatherCityList.Add("济源", "101181801");
            WeatherCityList.Add("焦作", "101181101");
            WeatherCityList.Add("新乡", "101180301");
            WeatherCityList.Add("三门峡", "101181701");
            WeatherCityList.Add("洛阳", "101180901");
            WeatherCityList.Add("郑州", "101180101");
            WeatherCityList.Add("开封", "101180801");
            WeatherCityList.Add("商丘", "101181001");
            WeatherCityList.Add("许昌", "101180401");
            WeatherCityList.Add("平顶山", "101180501");
            WeatherCityList.Add("漯河", "101181501");
            WeatherCityList.Add("周口", "101181401");
            WeatherCityList.Add("南阳", "101180701");
            WeatherCityList.Add("驻马店", "101181601");
            WeatherCityList.Add("信阳", "101180601");
            WeatherCityList.Add("十堰", "101201101");
            WeatherCityList.Add("神农架", "101201201");
            WeatherCityList.Add("恩施", "101201001");
            WeatherCityList.Add("襄阳", "101200201");
            WeatherCityList.Add("宜昌", "101200901");
            WeatherCityList.Add("荆门", "101201401");
            WeatherCityList.Add("荆州", "101200801");
            WeatherCityList.Add("随州", "101201301");
            WeatherCityList.Add("天门", "101201501");
            WeatherCityList.Add("潜江", "101201701");
            WeatherCityList.Add("仙桃", "101201601");
            WeatherCityList.Add("孝感", "101200401");
            WeatherCityList.Add("武汉", "101200101");
            WeatherCityList.Add("咸宁", "101200701");
            WeatherCityList.Add("鄂州", "101200301");
            WeatherCityList.Add("黄石", "101200601");
            WeatherCityList.Add("黄冈", "101200501");
            WeatherCityList.Add("张家界", "101251101");
            WeatherCityList.Add("吉首", "101251501");
            WeatherCityList.Add("常德", "101250601");
            WeatherCityList.Add("岳阳", "101251001");
            WeatherCityList.Add("益阳", "101250700");
            WeatherCityList.Add("长沙", "101250101");
            WeatherCityList.Add("怀化", "101251201");
            WeatherCityList.Add("娄底", "101250801");
            WeatherCityList.Add("湘潭", "101250201");
            WeatherCityList.Add("株洲", "101250301");
            WeatherCityList.Add("邵阳", "101250901");
            WeatherCityList.Add("衡阳", "101250401");
            WeatherCityList.Add("永州", "101251401");
            WeatherCityList.Add("郴州", "101250501");
            WeatherCityList.Add("滨州", "101121101");
            WeatherCityList.Add("东营", "101121201");
            WeatherCityList.Add("德州", "101120401");
            WeatherCityList.Add("聊城", "101121701");
            WeatherCityList.Add("济南", "101120101");
            WeatherCityList.Add("淄博", "101120301");
            WeatherCityList.Add("烟台", "101120501");
            WeatherCityList.Add("威海", "101121301");
            WeatherCityList.Add("泰安", "101120801");
            WeatherCityList.Add("莱芜", "101121601");
            WeatherCityList.Add("潍坊", "101120601");
            WeatherCityList.Add("青岛", "101120201");
            WeatherCityList.Add("菏泽", "101121001");
            WeatherCityList.Add("济宁", "101120701");
            WeatherCityList.Add("枣庄", "101121401");
            WeatherCityList.Add("临沂", "101120901");
            WeatherCityList.Add("日照", "101121501");
            WeatherCityList.Add("徐州", "101190801");
            WeatherCityList.Add("连云港", "101191001");
            WeatherCityList.Add("宿迁", "101191301");
            WeatherCityList.Add("淮安", "101190901");
            WeatherCityList.Add("盐城", "101190701");
            WeatherCityList.Add("扬州", "101190601");
            WeatherCityList.Add("泰州", "101191201");
            WeatherCityList.Add("南京", "101190101");
            WeatherCityList.Add("镇江", "101190301");
            WeatherCityList.Add("南通", "101190501");
            WeatherCityList.Add("常州", "101191101");
            WeatherCityList.Add("无锡", "101190201");
            WeatherCityList.Add("苏州", "101190401");
            WeatherCityList.Add("淮北", "101221201");
            WeatherCityList.Add("宿州", "101220701");
            WeatherCityList.Add("亳州", "101220901");
            WeatherCityList.Add("阜阳", "101220801");
            WeatherCityList.Add("蚌埠", "101220201");
            WeatherCityList.Add("淮南", "101220401");
            WeatherCityList.Add("六安", "101221501");
            WeatherCityList.Add("滁州", "101221101");
            WeatherCityList.Add("合肥", "101220101");
            WeatherCityList.Add("安庆", "101220601");
            WeatherCityList.Add("巢湖", "101221601");
            WeatherCityList.Add("马鞍山", "101220501");
            WeatherCityList.Add("芜湖", "101220301");
            WeatherCityList.Add("铜陵", "101221301");
            WeatherCityList.Add("池州", "101221701");
            WeatherCityList.Add("宣城", "101221401");
            WeatherCityList.Add("黄山", "101221001");
            WeatherCityList.Add("大同", "101100201");
            WeatherCityList.Add("朔州", "101100901");
            WeatherCityList.Add("忻州", "101101001");
            WeatherCityList.Add("太原", "101100101");
            WeatherCityList.Add("阳泉", "101100301");
            WeatherCityList.Add("吕梁", "101101100");
            WeatherCityList.Add("晋中", "101100401");
            WeatherCityList.Add("临汾", "101100701");
            WeatherCityList.Add("长治", "101100501");
            WeatherCityList.Add("晋城", "101100601");
            WeatherCityList.Add("运城", "101100801");
            WeatherCityList.Add("榆林", "101110401");
            WeatherCityList.Add("延安", "101110300");
            WeatherCityList.Add("铜川", "101111001");
            WeatherCityList.Add("宝鸡", "101110901");
            WeatherCityList.Add("咸阳", "101110200");
            WeatherCityList.Add("渭南", "101110501");
            WeatherCityList.Add("西安", "101110101");
            WeatherCityList.Add("商洛", "101110601");
            WeatherCityList.Add("汉中", "101110801");
            WeatherCityList.Add("安康", "101110701");
            WeatherCityList.Add("甘孜", "101271801");
            WeatherCityList.Add("阿坝", "101271901");
            WeatherCityList.Add("雅安", "101271701");
            WeatherCityList.Add("凉山", "101271601");
            WeatherCityList.Add("攀枝花", "101270201");
            WeatherCityList.Add("绵阳", "101270401");
            WeatherCityList.Add("德阳", "101272001");
            WeatherCityList.Add("成都", "101270101");
            WeatherCityList.Add("眉山", "101271501");
            WeatherCityList.Add("乐山", "101271401");
            WeatherCityList.Add("广元", "101272101");
            WeatherCityList.Add("南充", "101270501");
            WeatherCityList.Add("遂宁", "101270701");
            WeatherCityList.Add("资阳", "101271301");
            WeatherCityList.Add("内江", "101271201");
            WeatherCityList.Add("自贡", "101270301");
            WeatherCityList.Add("宜宾", "101271101");
            WeatherCityList.Add("巴中", "101270901");
            WeatherCityList.Add("达州", "101270601");
            WeatherCityList.Add("广安", "101270801");
            WeatherCityList.Add("泸州", "101271001");
            WeatherCityList.Add("迪庆", "101291301");
            WeatherCityList.Add("怒江", "101291201");
            WeatherCityList.Add("德宏", "101291501");
            WeatherCityList.Add("保山", "101290501");
            WeatherCityList.Add("丽江", "101291401");
            WeatherCityList.Add("大理", "101290201");
            WeatherCityList.Add("临沧", "101291101");
            WeatherCityList.Add("楚雄", "101290801");
            WeatherCityList.Add("普洱", "101290901");
            WeatherCityList.Add("西双版纳", "101291601");
            WeatherCityList.Add("昆明", "101290101");
            WeatherCityList.Add("玉溪", "101290701");
            WeatherCityList.Add("红河", "101290301");
            WeatherCityList.Add("昭通", "101291001");
            WeatherCityList.Add("曲靖", "101290401");
            WeatherCityList.Add("文山", "101290601");
            WeatherCityList.Add("遵义", "101260201");
            WeatherCityList.Add("铜仁", "101260601");
            WeatherCityList.Add("毕节", "101260701");
            WeatherCityList.Add("贵阳", "101260101");
            WeatherCityList.Add("水城", "101260801");
            WeatherCityList.Add("安顺", "101260301");
            WeatherCityList.Add("凯里", "101260501");
            WeatherCityList.Add("都匀", "101260401");
            WeatherCityList.Add("兴义", "101260901");
            WeatherCityList.Add("湖州", "101210201");
            WeatherCityList.Add("嘉兴", "101210301");
            WeatherCityList.Add("杭州", "101210101");
            WeatherCityList.Add("绍兴", "101210501");
            WeatherCityList.Add("宁波", "101210401");
            WeatherCityList.Add("舟山", "101211101");
            WeatherCityList.Add("金华", "101210901");
            WeatherCityList.Add("衢州", "101211001");
            WeatherCityList.Add("台州", "101210601");
            WeatherCityList.Add("丽水", "101210801");
            WeatherCityList.Add("温州", "101210701");
            WeatherCityList.Add("南平", "101230901");
            WeatherCityList.Add("宁德", "101230301");
            WeatherCityList.Add("三明", "101230801");
            WeatherCityList.Add("福州", "101230101");
            WeatherCityList.Add("莆田", "101230401");
            WeatherCityList.Add("龙岩", "101230701");
            WeatherCityList.Add("泉州", "101230501");
            WeatherCityList.Add("厦门", "101230201");
            WeatherCityList.Add("漳州", "101230601");
            WeatherCityList.Add("九江", "101240201");
            WeatherCityList.Add("景德镇", "101240801");
            WeatherCityList.Add("南昌", "101240101");
            WeatherCityList.Add("上饶", "101240301");
            WeatherCityList.Add("宜春", "101240501");
            WeatherCityList.Add("萍乡", "101240901");
            WeatherCityList.Add("新余", "101241001");
            WeatherCityList.Add("鹰潭", "101241101");
            WeatherCityList.Add("抚州", "101240401");
            WeatherCityList.Add("吉安", "101240601");
            WeatherCityList.Add("赣州", "101240701");
            WeatherCityList.Add("湛江", "101281001");
            WeatherCityList.Add("茂名", "101282001");
            WeatherCityList.Add("云浮", "101281401");
            WeatherCityList.Add("阳江", "101281801");
            WeatherCityList.Add("肇庆", "101280901");
            WeatherCityList.Add("江门", "101281101");
            WeatherCityList.Add("清远", "101281301");
            WeatherCityList.Add("佛山", "101280800");
            WeatherCityList.Add("中山", "101281701");
            WeatherCityList.Add("珠海", "101280701");
            WeatherCityList.Add("韶关", "101280201");
            WeatherCityList.Add("广州", "101280101");
            WeatherCityList.Add("东莞", "101281601");
            WeatherCityList.Add("深圳", "101280601");
            WeatherCityList.Add("惠州", "101280301");
            WeatherCityList.Add("河源", "101281201");
            WeatherCityList.Add("汕尾", "101282101");
            WeatherCityList.Add("梅州", "101280401");
            WeatherCityList.Add("揭阳", "101281901");
            WeatherCityList.Add("潮州", "101281501");
            WeatherCityList.Add("汕头", "101280501");
            WeatherCityList.Add("百色", "101301001");
            WeatherCityList.Add("河池", "101301201");
            WeatherCityList.Add("柳州", "101300301");
            WeatherCityList.Add("桂林", "101300501");
            WeatherCityList.Add("崇左", "101300201");
            WeatherCityList.Add("南宁", "101300101");
            WeatherCityList.Add("来宾", "101300401");
            WeatherCityList.Add("贺州", "101300701");
            WeatherCityList.Add("贵港", "101300801");
            WeatherCityList.Add("梧州", "101300601");
            WeatherCityList.Add("防城港", "101301401");
            WeatherCityList.Add("钦州", "101301101");
            WeatherCityList.Add("玉林", "101300901");
            WeatherCityList.Add("北海", "101301301");
            WeatherCityList.Add("台北", "101340101");
            WeatherCityList.Add("桃园", "101340102");
            WeatherCityList.Add("新竹", "101340103");
            WeatherCityList.Add("宜兰", "101340104");
            WeatherCityList.Add("苗栗", "101340402");
            WeatherCityList.Add("台中", "101340401");
            WeatherCityList.Add("彰化", "101340403");
            WeatherCityList.Add("南投", "101340404");
            WeatherCityList.Add("花莲", "101340405");
            WeatherCityList.Add("云林", "101340406");
            WeatherCityList.Add("嘉义", "101340202");
            WeatherCityList.Add("台南", "101340203");
            WeatherCityList.Add("高雄", "101340201");
            WeatherCityList.Add("台东", "101340204");
            WeatherCityList.Add("屏东", "101340205");
            WeatherCityList.Add("新加坡", "104010100");


            Dictionary<string, string[]> Pm25CityList = new Dictionary<string, string[]>();
            Pm25CityList.Add("Hefei", "合肥,290".Split(','));
            Pm25CityList.Add("Maanshan", "马鞍山,90".Split(','));
            Pm25CityList.Add("Wuhu", "芜湖,56".Split(','));
            Pm25CityList.Add("Beijing", "北京,338".Split(','));
            Pm25CityList.Add("Fuzhou", "福州,86".Split(','));
            Pm25CityList.Add("Quanzhou", "泉州,no data".Split(','));
            Pm25CityList.Add("Xiamen", "厦门,166".Split(','));
            Pm25CityList.Add("Jinchang", "金昌,52".Split(','));
            Pm25CityList.Add("Lanzhou", "兰州,no data".Split(','));
            Pm25CityList.Add("Dongguan", "东莞,168".Split(','));
            Pm25CityList.Add("Foshan", "佛山,143".Split(','));
            Pm25CityList.Add("Guangzhou", "广州,152".Split(','));
            Pm25CityList.Add("Huizhou", "惠州,152".Split(','));
            Pm25CityList.Add("Jiangmen", "江门,140".Split(','));
            Pm25CityList.Add("Shantou", "汕头,83".Split(','));
            Pm25CityList.Add("Shaoguan", "韶关,41".Split(','));
            Pm25CityList.Add("Shenzhen", "深圳,169".Split(','));
            Pm25CityList.Add("Shunde", "顺德,137".Split(','));
            Pm25CityList.Add("Zhanjiang", "湛江,96".Split(','));
            Pm25CityList.Add("Zhaoqing", "肇庆,150".Split(','));
            Pm25CityList.Add("Zhongshan", "中山,162".Split(','));
            Pm25CityList.Add("Zhuhai", "珠海,152".Split(','));
            Pm25CityList.Add("Beihai", "北海,61".Split(','));
            Pm25CityList.Add("Guilin", "桂林,71".Split(','));
            Pm25CityList.Add("Liuzhou", "柳州,82".Split(','));
            Pm25CityList.Add("Nanning", "南宁,173".Split(','));
            Pm25CityList.Add("Guiyang", "贵阳,125".Split(','));
            Pm25CityList.Add("Zunyi", "遵义,52".Split(','));
            Pm25CityList.Add("Haikou", "海口,149".Split(','));
            Pm25CityList.Add("Sanya", "三亚,54".Split(','));
            Pm25CityList.Add("Baoding", "保定,755".Split(','));
            Pm25CityList.Add("Chengde", "承德,154".Split(','));
            Pm25CityList.Add("Handan", "邯郸,480".Split(','));
            Pm25CityList.Add("Hengshui", "衡水,420".Split(','));
            Pm25CityList.Add("Cangzhou", "沧州,410".Split(','));
            Pm25CityList.Add("Langfang", "廊坊,675".Split(','));
            Pm25CityList.Add("Qinhuangdao", "秦皇岛,224".Split(','));
            Pm25CityList.Add("Shijiazhuang", "石家庄,885".Split(','));
            Pm25CityList.Add("Tangshan", "唐山,549".Split(','));
            Pm25CityList.Add("Xingtai", "邢台,719".Split(','));
            Pm25CityList.Add("Zhangjiakou", "张家口,185".Split(','));
            Pm25CityList.Add("Anyang", "安阳,154".Split(','));
            Pm25CityList.Add("Jiaozuo", "焦作,111".Split(','));
            Pm25CityList.Add("Kaifeng", "开封,133".Split(','));
            Pm25CityList.Add("Luoyang", "洛阳,90".Split(','));
            Pm25CityList.Add("Pingdingshan", "平顶山,159".Split(','));
            Pm25CityList.Add("Sanmenxia", "三门峡,114".Split(','));
            Pm25CityList.Add("Zhengzhou", "郑州,343".Split(','));
            Pm25CityList.Add("Daqing", "大庆,110".Split(','));
            Pm25CityList.Add("Haerbin", "哈尔滨,180".Split(','));
            Pm25CityList.Add("Mudanjiang", "牡丹江,49".Split(','));
            Pm25CityList.Add("Qiqihaer", "齐齐哈尔,94".Split(','));
            Pm25CityList.Add("Jingzhou", "荆州,193".Split(','));
            Pm25CityList.Add("Wuhan", "武汉,184".Split(','));
            Pm25CityList.Add("Yichang", "宜昌,139".Split(','));
            Pm25CityList.Add("Changsha", "长沙,268".Split(','));
            Pm25CityList.Add("Changde", "常德,83".Split(','));
            Pm25CityList.Add("Xiangtan", "湘潭,136".Split(','));
            Pm25CityList.Add("Yueyang", "岳阳,121".Split(','));
            Pm25CityList.Add("Zhangjiajie", "张家界,59".Split(','));
            Pm25CityList.Add("Zhuzhou", "株洲,10".Split(','));
            Pm25CityList.Add("Changchun", "长春,284".Split(','));
            Pm25CityList.Add("Jilin", "吉林,73".Split(','));
            Pm25CityList.Add("Changzhou", "常州,245".Split(','));
            Pm25CityList.Add("Huai'an", "淮安,183".Split(','));
            Pm25CityList.Add("Lianyungang", "连云港,159".Split(','));
            Pm25CityList.Add("Nanjing", "南京,309".Split(','));
            Pm25CityList.Add("Nantong", "南通,235".Split(','));
            Pm25CityList.Add("Suzhou", "苏州,212".Split(','));
            Pm25CityList.Add("Suqian", "宿迁,144".Split(','));
            Pm25CityList.Add("Wuxi", "无锡,164".Split(','));
            Pm25CityList.Add("Xuzhou", "徐州,235".Split(','));
            Pm25CityList.Add("Yancheng", "盐城,134".Split(','));
            Pm25CityList.Add("Yangzhou", "扬州,179".Split(','));
            Pm25CityList.Add("Zhenjiang", "镇江,221".Split(','));
            Pm25CityList.Add("Jiujiang", "九江,no data".Split(','));
            Pm25CityList.Add("Nanchang", "南昌,177".Split(','));
            Pm25CityList.Add("Anshan", "鞍山,135".Split(','));
            Pm25CityList.Add("Benxi", "本溪,123".Split(','));
            Pm25CityList.Add("Dalian", "大连,199".Split(','));
            Pm25CityList.Add("Fushun", "抚顺,102".Split(','));
            Pm25CityList.Add("Jinzhou", "锦州,78".Split(','));
            Pm25CityList.Add("Shenyang", "沈阳,516".Split(','));
            Pm25CityList.Add("Baotou", "包头,no data".Split(','));
            Pm25CityList.Add("Chifeng", "赤峰,no data".Split(','));
            Pm25CityList.Add("Huhehaote", "呼和浩特,157".Split(','));
            Pm25CityList.Add("Shizuishan", "石嘴山,no data".Split(','));
            Pm25CityList.Add("Yinchuan", "银川,182".Split(','));
            Pm25CityList.Add("Xining", "西宁,174".Split(','));
            Pm25CityList.Add("Binzhou", "滨州,211".Split(','));
            Pm25CityList.Add("Dezhou", "德州,463".Split(','));
            Pm25CityList.Add("Dongying", "东营,332".Split(','));
            Pm25CityList.Add("Heze", "菏泽,476".Split(','));
            Pm25CityList.Add("Jinan", "济南,193".Split(','));
            Pm25CityList.Add("Jining", "济宁,247".Split(','));
            Pm25CityList.Add("Laiwu", "莱芜,370".Split(','));
            Pm25CityList.Add("Liaocheng", "聊城,363".Split(','));
            Pm25CityList.Add("Linyi", "临沂,310".Split(','));
            Pm25CityList.Add("Qingdao", "青岛,159".Split(','));
            Pm25CityList.Add("Rizhao", "日照,211".Split(','));
            Pm25CityList.Add("Taian", "泰安,208".Split(','));
            Pm25CityList.Add("Weihai", "威海,157".Split(','));
            Pm25CityList.Add("Weifang", "潍坊,229".Split(','));
            Pm25CityList.Add("Yantai", "烟台,172".Split(','));
            Pm25CityList.Add("Zaozhuang", "枣庄,181".Split(','));
            Pm25CityList.Add("Zibo", "淄博,159".Split(','));
            Pm25CityList.Add("Changzhi", "长治,82".Split(','));
            Pm25CityList.Add("Datong", "大同,102".Split(','));
            Pm25CityList.Add("Linfen", "临汾,77".Split(','));
            Pm25CityList.Add("Taiyuan", "太原,189".Split(','));
            Pm25CityList.Add("Yangquan", "阳泉,68".Split(','));
            Pm25CityList.Add("Baoji", "宝鸡,54".Split(','));
            Pm25CityList.Add("Tongchuan", "铜川,56".Split(','));
            Pm25CityList.Add("Weinan", "渭南,no data".Split(','));
            Pm25CityList.Add("Xian", "西安,610".Split(','));
            Pm25CityList.Add("Xianyang", "咸阳,108".Split(','));
            Pm25CityList.Add("Yanan", "延安,66".Split(','));
            Pm25CityList.Add("Shanghai", "上海,113".Split(','));
            Pm25CityList.Add("Chengdu", "成都,391".Split(','));
            Pm25CityList.Add("Deyang", "德阳,112".Split(','));
            Pm25CityList.Add("Luzhou", "泸州,119".Split(','));
            Pm25CityList.Add("Mianyang", "绵阳,76".Split(','));
            Pm25CityList.Add("Nanchong", "南充,64".Split(','));
            Pm25CityList.Add("Panzhihua", "攀枝花,84".Split(','));
            Pm25CityList.Add("Yibin", "宜宾,108".Split(','));
            Pm25CityList.Add("Zigong", "自贡,65".Split(','));
            Pm25CityList.Add("Tianjin", "天津,146".Split(','));
            Pm25CityList.Add("Lasa", "拉萨,79".Split(','));
            Pm25CityList.Add("Karamay", "克拉玛依,93".Split(','));
            Pm25CityList.Add("Wulumuqi", "乌鲁木齐,170".Split(','));
            Pm25CityList.Add("Kunming", "昆明,141".Split(','));
            Pm25CityList.Add("Qujing", "曲靖,66".Split(','));
            Pm25CityList.Add("Yuxi", "玉溪,77".Split(','));
            Pm25CityList.Add("Hangzhou", "杭州,179".Split(','));
            Pm25CityList.Add("Huzhou", "湖州,230".Split(','));
            Pm25CityList.Add("Jiaxing", "嘉兴市,191".Split(','));
            Pm25CityList.Add("Jinhua", "金华,156".Split(','));
            Pm25CityList.Add("Lishui", "丽水,144".Split(','));
            Pm25CityList.Add("Ningbo", "宁波,32".Split(','));
            Pm25CityList.Add("Quzhou", "衢州,159".Split(','));
            Pm25CityList.Add("Shaoxing", "绍兴,196".Split(','));
            Pm25CityList.Add("Taizhou", "台州市,216".Split(','));
            Pm25CityList.Add("Wenzhou", "温州,74".Split(','));
            Pm25CityList.Add("Zhoushan", "舟山,62".Split(','));
            Pm25CityList.Add("Chongqing", "重庆,164".Split(','));

            foreach (KeyValuePair<int, string[]> kvp_wb in WeiboCityList)
            {
                bool get_tq_key = false;
                bool get_pm_key = false;

                string weatherId = string.Empty;
                string pm25Value = string.Empty;
                string pingying = string.Empty;

                string cityKeyword = string.Empty;
                if (Regex.IsMatch(kvp_wb.Value[1], "北京|天津|上海|重庆|香港|澳门", RegexOptions.IgnoreCase))
                {
                    cityKeyword = kvp_wb.Value[1];
                }
                else
                {
                    cityKeyword = kvp_wb.Value[3];
                }

                foreach (KeyValuePair<string, string> kvp_tq in WeatherCityList)
                {
                    if (kvp_tq.Key.Contains(cityKeyword))
                    {
                        weatherId = kvp_tq.Value;
                        break;
                    }
                }
                foreach (KeyValuePair<string, string[]> kvp_pm in Pm25CityList)
                {
                    if (kvp_pm.Value[0].Contains(cityKeyword))
                    {
                        get_pm_key = true;
                        pingying = kvp_pm.Key;
                        pm25Value = kvp_pm.Value[1];
                        break;
                    }
                }

                Logger.logger("INSERT INTO \"Weather\" VALUES(" + kvp_wb.Key + "," + kvp_wb.Value[0] + ",\"" + kvp_wb.Value[1] + "\"," + kvp_wb.Value[2] + ",\"" + kvp_wb.Value[3] + "\",\"" + cityKeyword + "\",\"" + weatherId + "\",\"" + pingying + "\",\"" + pm25Value + "\");");
                if (string.IsNullOrEmpty(weatherId) 
                    && kvp_wb.Value[2] != "100" 
                    && Convert.ToInt32(kvp_wb.Value[0]) < 100
                    )
                {
                    //Logger.logger("----------------");
                }
            }
            #endregion
        }
    }
}
